Displaying 1 result from an estimated 1 matches for "referrer_uri".
2007 Nov 02
4
Login Redirect - Hacking the session[original_uri]
...hat the param is passing into the login page, but for
whatever reason, no matter what I do, the user is redirected to the
homepage after login.
Would anyone have any ideas? thanks soo much!
-Mario
#code from show.rhtml
if current_user
#ajax code
else
link_to "vote up", login_url(:referrer_uri => request.request_uri) %>
end
#Controller
def create
uri ||= params[:referrer_uri] #pull in hacked original_uri
uri ||= session[:original_uri] #pull in sessions''s original uri
uri ||= homepage_url #default to homepage
render :action => :new and return true if...