class Userattr_accessible :name, :as => :adminend
User.create(params[:user], :as => :admin)
In short, no, it's not a 'role' in the sense that you mean here,
rather the name of a parameter filter to use. Your app itself will
need to have it's own logic and semantics for figuring out which
filter to use based on your own business rules.
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-co...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
>
>
--
Cheers
Koz
What would multiple values mean for :as? Any of these? all of these?
There's no valid / sane semantics for merging black and white lists
together.
You'll probably always have to do that yourself, this isn't intended
for the use case you seem to have.
--
Cheers
Koz