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".
Thanks
El 03/05/2014, a las 14:37, Colin Law <clanlaw@gmail.com> escribió:
> On 3 May 2014 13:08, Alfredo Barrero <abarrero90@gmail.com> wrote:
>> Good afternoon all,
>>
>> First of all thanks for the answers.
>>
>> Lauree, I been trying to use 'devise' gem but I'm to junior yet, so I'm
>> using other way to the users login and logout. But thanks for the advise.
>>
>> I'm following what Colin said. With this line in the controllers:
>> before_action :authorize, only: [:index, :destroy]
>>
>> Further I have a question. How can I manage 'strange' requests that come to
>> my app like: http://localhost:3000/undefinded
>
> Please quote the previous message when you are replying, it makes it
> easier to follow the thread. Thanks.
>
> What do you mean by manage them? What to you want to do?
>
> 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%3D0gLshdwwK3h3QsbYOedzXcmQBc5%3DS6o570iJSRD0DdDwtog%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/999DB52B-1615-4CD4-A2A3-C13CC4E06573%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment