Questions tagged [cancancan]

Continuation of CanCan, the authorization Gem for Ruby on Rails.

As in the project webpage:

CanCanCan is an authorization library for Ruby on Rails which restricts what resources a given user is allowed to access. All permissions are defined in a single location (the Ability class) and not duplicated across controllers, views, and database queries

453 questions
-2
votes
1 answer

Limit access of active admin using cancancan

I want to prohibit admin from seeing the data of a user (which user added manually). Admin should only see the data which he added from admin panel. I'm using cancancan gem and active admin gem. This is the ability.rb file, where cancancan is…
-2
votes
1 answer

Create a bulletin board on Ruby on Rails

It is necessary to write a bulletin board with the division of ads by category (the ad can be in different categories at the same time). Ads must have several statuses (moderation / approved / rejected), only the administrator can change the…
Максим
  • 23
  • 1
  • 7
-2
votes
2 answers

Rails: warning: already initialized constant User::HABTM_Roles rolify

This issue i' m facing When trying to create a seeds.rb inorder to define roles with rolify gem in rails
sowmya
  • 51
  • 2
  • 8
1 2 3
30
31