Jump to content

The ultimate community for Ruby on Rails developers.


Photo

user restrictions


  • Please log in to reply
1 reply to this topic

#1 jonathanGeavi

jonathanGeavi

    Passenger

  • Members
  • 1 posts

Posted 13 October 2013 - 06:23 PM

I'm new to rails and would like to know how to make ordinary users can not see all actions, such as delete, update, ie they can only see their own data, a help thanks ....



#2 Ohm

Ohm

    Guard

  • Members
  • 179 posts
  • LocationCopenhagen

Posted 13 October 2013 - 07:09 PM

You could use a gem like Cancan (https://github.com/ryanb/cancan)


  • jonathanGeavi likes this

Blog: http://ohm.sh | Twitter: madsohm





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users