Hemant Bhargava wrote: > Thats correct that :except can be an array of values but if gave them > user can also see access the pages .. even if he is neither a admin nor > tailor .. > you mean to say that i have to do in this way .. > before_filter :authorize_admin, :except => [:def, :xyz]
Take a look at role_requirement. It should give you some ideas on how to implement what you want, or you might be able to just use it as is: http://github.com/timcharper/role_requirement -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

