Displaying 1 result from an estimated 1 matches for "redirect_to_where_i_wa".
Did you mean:
redirect_to_where_i_was
2006 Jan 08
4
Redirect to where I was
...ed page. As a quick fix I created two little
methods in the controllers/application.rb. Does this seem like an ok
way to go?
Thanks,
Peter
class ApplicationController < ActionController::Base
def i_was_here
session[:i_was_here] = request.env[''REQUEST_URI'']
end
def redirect_to_where_i_was
redirect_to session[:i_was_here]
end
end