RailsApps / rails3-bootstrap-devise-cancan

Outdated. See the rails-devise-pundit example app for Rails 4.1.
http://railsapps.github.io
491 stars 207 forks source link

How make some actions to be accessable only for VIP ? #17

Closed mitchpolska closed 11 years ago

mitchpolska commented 11 years ago

Hi, How can I use VIP role ? Like this: before_filter :authenticate_VIP!, :only => :new

Thank you in advance

DanielKehoe commented 11 years ago

Have you looked at the tutorial? See the sections "Set Up Authorization" and "Set Up a Demonstration of CanCan". Let me know if the explanation is not sufficient.