In the Ruby on Rails application that I inherited from someone, I have code that looks like this
<% if can? :create, :objects %> <%= link_to 'Add New Object', new_object_path %>
This web application has a login and users have different permissions defined in the table named groups_roles (in which groups (for example, admin, user) there are roles (for example, adding new objects))
I want to add new permissions, so where can I do this? Where are these things defined? How does Ruby know which table to get the different permissions from, and how does it know that :create and :objects are in the code above?
source share