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*

Thanks! 

Alfredo.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/433e85f3-8777-4228-96c6-60917ea1621f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to