Add permitions to registered users

Hello

I create a register/login page to can use it later on my page and i
want/have to add permissions for the users so that they cant
delete/comment/etc things from the site that only admins can do!

Can u help me?
Thank you

I was looking into Devise and CanCan for the first time just the other
day,
and the approach sounds like the one you need.

http://www.tonyamoyal.com/2010/07/28/rails-authentication-with-devise-and-cancan-customizing-devise-controllers/

On 8 March 2011 01:14, Zakris Z. [email protected] wrote:

I create a register/login page to can use it later on my page

Look at authentication gems like Devise and Clearance

and i
want/have to add permissions for the users so that they cant
delete/comment/etc things from the site that only admins can do!

For this, use authorisation gems, like CanCan and Aegis.

Regards,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs