|
hola, yes is enough with enable/disable action, thanks, and i don't now over this implementation, just two months ago i needed it and i read all AS documentation and not see that, and not take time to hack this functionality (sorry if i say some incorrect, my english writing is very bad), Benjamín rbarton escribió: Closer, Benjamin, You can apply model-based authorization to enable/disable action links on a per-record basis, see the very bottom of that security wiki page for an example.Now if disabling is not good enough, you want the entire link text to disappear, you'll have to override the _list_actions partial for that controller, and filtering out the link rendering part explicitly. Start by copying the default one out of the AS directory structure (active_scaffold/frontends/default/views/_list_actions.rhtml) and putting it in your controller directory, then edit and test as needed. Ryan On Feb 25, 3:49 pm, Benjamín Cárdenas Salamandra <[email protected]> wrote: --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
Re: How can I hide some action links for some record?
Benjamín Cárdenas Salamandra Thu, 26 Feb 2009 09:16:45 -0800
