Displaying 1 result from an estimated 1 matches for "moderators1".
Did you mean:
moderators
2006 Apr 28
4
Call for patterns...
...oller.rb
profile_controller.rb
And frontend with:
widget_controller.rb
etc...
How do I group those controllers? Should I put them in subdirectories?
Does rails support this automagically?
and
2. I have a model/table Widget with fields a,b,c,etc.
Lets say guest can edit fields a,b
users: a,b,c,d
moderators1: a,b,c,d,e,f,g
moderators1: a,b,c,d,g,h,i
admins: a-z
How do I implement this? Can I create a model-class for each user-group?
How do I make sure that certain fields cannot be edited (for example by
Widget.update_attributes(params[:widget])?
Thanks
PS: Obviously I want to make it ADAP (as DRY...