Ruby on Rails
Saturday, May 3, 2014
When I type ‘http://localhost:3000/undefinded' I get this page:
Routing Error
No route matches [GET] "/undefined”
This is a route problem, it is trying to load that path.
Thanks.
Alfredo.
El 03/05/2014, a las 14:51, Colin Law <clanlaw@gmail.com> escribió:
On 3 May 2014 13:41, Alfredo Barrero <abarrero90@gmail.com> wrote:Ok sorry. What I need is to redirect the application in the case a bad request comes to my application. For example: http://localhost:3000/undefinded
The application have to redirect that request to a page that says something like "Sorry that page does not exist".
That is already handled for you. Just edit public/404.html to say
whatever you like.
Colin
--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/ZIASaUTOaMg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLspKRNEVWPQmCZpKg-rbO_BeMWwvCmecLtg-tvLGfBL%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment