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.
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.
You can define a rescue function in your ApplicationController and
then do whatever you want:
def rescue_action(exception)
end
This function is called if exists, if not Rails shows you the default
one.
Regards.
Franco C…
On Apr 28, 10:27 am, Dharmdip R. <rails-mailing-l…@andreas-
Okay ! Will follow instruction ,
Thanks.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs