Ruby on Rails Saturday, May 3, 2014

On 3 May 2014 15:06, Alfredo Barrero <abarrero90@gmail.com> wrote:
> When I type 'http://localhost:3000/undefinded' I get this page:
>
> Routing Error
>
> No route matches [GET] "/undefined"

I *think* that is because you are running in development mode. I
think that if you run it in a production environment that
public/404.html will be displayed, but I must admit I am not sure
exactly how this works. Perhaps someone more knowledgeable will add
detail or correct me.

Colin

>
>
> 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.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, 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/5490C204-493D-42D8-BFF2-6CE6C7D1CC9B%40gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, 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%3D0gLtZ4FuE0HJvHG%3DNsEL0r7EKGt8gU4t5ZAWXuEVQ%3D08r6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment