search for: intended_location

Displaying 1 result from an estimated 1 matches for "intended_location".

2006 Jul 09
1
Accessing the name of a controller''s module?
...ller instance method controller_name(), and looking at the API docs there is a class method called controller_path() that I have been trying to use, but no corresponding instance method that I could use. I might just not know the right syntax. My redirect code is: unless session[:user] session[:intended_location] = action_name session[:intended_controller] = controller_name flash[:notice] = "You must log in to continue." redirect_to :controller => "/account", :action => "log_in" end Then once the action I''m redirected to is completed I use this code to re...