Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

mkrajewski opened this Issue · 2 comments

3 participants



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? : )


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?


@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.