if you are adding these actions via action links, set the security_method attribute on your action link
so config.action_links.add 'action', :label => 'read the wiki', :security_method => :action_security_method then in your controller def action_security_method return blah end On Fri, Apr 10, 2009 at 12:31 PM, Soren <[email protected]> wrote: > > I use the controller method for restricting the actions in my various > controllers. Works great. > > But if I add new actions to the ActiveScaffold how do I control the > action of those. > > Adding the #{action_name}_authorized? does not do the trick. > > It would really be nice to be able to have the links appear and > disappear as appropriate. > > Has anybody found a way to do this ? > > /S > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
