-
Hi there,
I'm using the cancan gem to control which action users can perform in a simple blogging app (the current logged in user can't delete other users posts)
In the ability file I'm defining 2 a…
-
I have an activeadmin app that I have just installed cancan on. I have a model for orders and admin_user. Before the installation of cancan, this was working. When I create an order with a user that h…
-
I had some trouble with this and couldn't find anything online so I'm just posting this one to help anyone who may come across the same problem:
Ruby 2.0
Rails 4.0.1
CanCan 2.0.0
Devise 3.2.0
Using …
-
After updating to 1.6.8 I discovered a bug which wasn't in 1.6.7
Cancan generates wrong table names for sql when using associations.
Ability
``` ruby
can :manage, Video, uploader: { client_id: us…
-
when:
```ruby
can :update, Note { |note| note.writer_id == user.id }
```
### CanCan handle undefined method exception (undefined method Note' for # )
when:
```ruby
can :update, Note do…
-
It is unclear to me how I would use CanCan to authorize access to Upmin. I tried a few things but was unable to figure it out. It would be nice if there were an example of doing this. Thanks.
-
I am getting this deprecation warning when using Rails 4.0.3, Rspec 3.0.0.beta2 and cancan 1.6.10.
```
`failure_message_for_should_not` is deprecated. Use `failure_message_when_negated`
instead. Call…
-
-
CanCan 2.0 currently doesn't correctly works with [Draper](https://github.com/jcasimir/draper/tree/), since Draper wraps over the model object, its class name become that of Draper's class name. So Ca…
sirn updated
10 years ago
-
I need more success stories than my own one to ensure everything works properly or close to it to release 1.0. Please, put :+1: into this thread if you have one and you agree 1.0 can be released.
Add…