Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

can? :read, ModelName return false, but work #576

ghost opened this Issue Mar 8, 2012 · 2 comments


None yet
2 participants

ghost commented Mar 8, 2012


I have a little problem. In ability.rb when I define
can :read, ModelName
when I try in view
can? :read, @obj
it return false (of course in browser all is ok), and when I change ability to
can :read, :all
can? :read @obj
return true (and that is ok).

Cab anybody help me? : )


Gimi commented May 12, 2012

Which version of Cancan did you use? I tested against 1.6.7, and everything was OK. Are you still have the problem? If you are, would you please provide more info, like how did you write your view, and how did you know it returned false?


andhapp commented May 17, 2012

@mkrajewski: I am going to close this issue for now. If you still have this issue, please comment here and it'll be reopened for further discussion/investigation.

@andhapp andhapp closed this May 17, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment