Displaying 2 results from an estimated 2 matches for "welcome_path".
Did you mean:
welcome_page
2008 Aug 01
1
rescue_from ActionController::MethodNotAllowed
...y light you
can shed.
- - - - - - - - - - - - - - - - - - - -
class UsersController < ApplicationController
rescue_from ActionController::MethodNotAllowed, :with
=> :not_allowed
def not_allowed
flash[:message] = "The action you requested is not supported."
redirect_to welcome_path
end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group,...
2010 Feb 19
0
You are being redirected
...href="http://www.example.com/
welcome">redirected</a>.</body></html>
I do not know why this is happening or what I did to trigger this
behaviour. The API does not give me any clues as to what is going
on. The redirect command involved is:
redirect_back_or_default(welcome_path)
def redirect_back_or_default(default)
redirect_to(session[:return_to] || default)
session[:return_to] = nil
end
Up to today this has simply displayed the target page. I have no idea
how or why the intermediate redirect page is generated. I would be
very grateful if anyone c...