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 -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 Tue, Mar 8, 2011 at 2:14 AM, Zakris Zoukrou <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> 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 > > > -- > 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 8 March 2011 01:14, Zakris Zoukrou <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I create a register/login page to can use it later on my pageLook 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, -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.