I am in one action on Rails, but I wish to continue processing from within another action. My code looks like this:
send(new_action) #call the new_action method
action_name = new_action #change the controller.action_name
render :action => new_action #inform the view that we're in new_action
this works, but the action_name -- though it changes from within the ActionController instance -- is reset when it's retrieved from within the view as
controller.action_name
is there any way to set it and make it stick?
Edit: I have found another solution which doesn't involve this problem, which is here. Thanks!