search for: check_roles

Displaying 3 results from an estimated 3 matches for "check_roles".

Did you mean: check_nodes
2005 Dec 15
2
Passing parameters to before_filter methods
I have a method that checks for a given role. I want to write something in my controllers like before_filter :check_roles(''admin'') Which will ensure the current user has the admin role. Is it possible to pass parameters in this way? Ian
2008 Nov 06
0
Restore password without session initialized
...e or method `new_session_path'' for #<UsersController:0x6a8cedc> lib/authenticated_system.rb:68:in `access_denied'' lib/authenticated_system.rb:65:in `access_denied'' lib/role_requirement_system.rb:116:in `access_denied'' lib/role_requirement_system.rb:121:in `check_roles'' I alredy have installed the plugin Authenticated System. The actions I have taken: before_filter :authorize, :except => [:login, :remind] in application.rb The method authorize look if a session is open. If not, redirects to method login. I want to know if I''m doing an...
2009 May 01
5
Layout antics
...t; /&gt; As routing calls. (from the stderror output): Processing OperationsController#css to css (for 127.0.0.1 at 2009-05-01 06:07:26) [GET] Parameters: {"id"=>"menu"} ActionController::UnknownAction (No action responded to css. Actions: access_denied, check_group, check_roles, create, destroy, edit, index, new, role_requirements, role_requirements=, show, toggle, and update): Does anyone have an idea of where to look or have you seen this error before? Nothing dynamic is changing in the layout file to my knowledge. This error occurs if I call that page directly, or if...