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

Attachments: http://www.ruby-forum.com/attachment/6006/scrumptious.rar

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/

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,