Okay, so I''ve customized my error messages with the following in
application.rb:
=========================protected
def rescue_action(exception)
@message = exception.backtrace.join("\n") unless exception
render ''home/error_404'', :status => 404
end
=========================
This works except for when I try to access a controller or action that
doesn''t exist. Then I get a Routing Error on my local development
machine:
=========================Routing Error
Recognition failed for "/randomness"
=========================
and a 500 - Internal Server Error when accessing from a remote machine.
Shouldn''t my rescue_action method capture ALL exceptions? I
don''t want
my users ever seeing "500 - Internal Server Error".
Marc
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---