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:
> Hola,
>
> I need the same functionality too, is better try to implement in the
> edge, no?
>
> Benjamín
>
> Closer escribió:
>
> > Hi,
>
> > I want to hide some action links (see attachment
> >http://download.maksd.ru/hide_some_actions.png). How can I do it?
>
> > Thanks,
> >   Maxim Dobriakov
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

  • Ho... Closer
    • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
    • ... Benjamín Cárdenas Salamandra
      • ... rbarton
        • ... Benjamín Cárdenas Salamandra

Reply via email to