On Oct 8, 2012, at 3:32 AM, Avi wrote:
> Thanks for the reply.
>
> How cancan can be used for restricting the methods in controllers which has no models ?
By dealing with the model that represents current_user or its local equivalent. The controller in question does not have to be the UsersController by any means, as long as you have authenticated at some point, and have a current_user somewhere in your application. Lots more here:
https://github.com/ryanb/cancan/wiki/Authorizing-Controller-Actions
Walter