search for: authorize_by_type

Displaying 2 results from an estimated 2 matches for "authorize_by_type".

2006 Jan 15
8
Underscore character in session var
I stumbled across a weird problem i can do: @session[:userid] = 1 but cant: @session[:user_id] = 1 The second session var doesnt set. Is there a config setting for this? -- Posted via http://www.ruby-forum.com/.
2006 Jan 16
1
[roles/users]I give up, please help
...redirect_to :action=>:login end end def create #insert a new usertype in the users_usertypes table end def update #update a usertype in the users_usertypes table end > how can i use a method with an attribute such as auth_by_type in a > before_filter. I tried: before_filter :authorize_by_type("admin") > but that doesnt work... > Ive been spending hours and hours on this simple thing but i cant fix it. > arghh > I have a couple of questions. > 1. How can i update/set the usertype of a user > 2. How can i see if a user has a usertype ''admin''...