You can define a rescue function in your ApplicationController and
then do whatever you want:

def rescue_action(exception)
# Rescue code, redirection, ecc.
end

This function is called if exists, if not Rails shows you the default
one.

Regards.

Franco Catena.

On Apr 28, 10:27 am, Dharmdip Rathod <rails-mailing-l...@andreas-
s.net> wrote:
> Hello,
>
> How to get error page redirection when i am get rails conventional
> exception .
>
> Say like, i have error in my controller and rails will give me exception
> and will render me error page but i want custom error page redirection.
>
> Thanks.
> --
> Posted viahttp://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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to