Mati M. wrote in post #1109768: >> >> You're really talking about two separate things here. Authentication and >> Authorization. I personally use OmniAuth for authentication and CanCan >> for authorization. To me this is an excellent combination for most of my >> needs. >> >> https://github.com/ryanb/cancan > > Thanks Robert. > > So can I use https://github.com/ryanb/cancan for both authentication > and authorization ? Or do I have to use 2 gems?
CanCan is agnostic about authentication. It assumes you have a current_user method by default (the name can be customized to whatever your authentication system provides). This is actually a good thing. It's just good programming practice, in general, to separate concerns this way. -- Posted via http://www.ruby-forum.com/. -- 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/73c701414cac6d7e8185cca52b71734e%40ruby-forum.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.

