nathanl / authority

*CURRENTLY UNMAINTAINED*. Authority helps you authorize actions in your Rails app. It's ORM-neutral and has very little fancy syntax; just group your models under one or more Authorizer classes and write plain Ruby methods on them.
MIT License
1.21k stars 67 forks source link

authority can method not working #91

Closed adityashankert closed 9 years ago

adityashankert commented 9 years ago

I am trying to use the following

if @user.can?(:view_stats_dashboard)
.....

end

The can is working in controller but not in views where i am getting no method exception