On Sep 15, 1:18 pm, Hemant Bhargava <[email protected]>
wrote:
> Guyz,
>
> I am having a question for you..
> Scenario is i am using before_filter in controller ABC to check that
> wheather user is administrator or not .. and if not then it can show
> user only one page to user .. did it like this..
> before_filter :authorize_admin, :except => :def
>
> Now i want a condition that if the user is not admin but if he is a
> tailor then he can see two pages as well def and xyz ..
>

The value of :except can be an array of values. Or you may be in a
case where you just need to add that logic to authorize_admin.

Fred
> Hope you people got it right.. How can i came out from this dillema ..
> :)
> --
> Posted viahttp://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to