El Wednesday 25 February 2009 20:43:35 Closer escribió:
> On 25 фев, 12:37, "Sergio Cambra .:: entreCables - Symbol Servicios
>
> Informáticos S.L. ::." <[email protected]> wrote:
> > El Tuesday 24 February 2009 20:16:54 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?
> >
> > I can't see the screenshot.
>
> Sorry, I will try to reproduce image using the text:
>
> Name | Action
> --------------
> Max  | Edit Show
> Ann  |      Show
> Mick | Edit
> Peggy| (disabled)
>
> (disabled) - only text
>
> As you can see I can edit and show record with Max name, I can only
> show record with Ann name, I can only edit record with Mick name and I
> can neither edit nor show record with Peggy name.
>
> I think I should hide all standard actions (and actions column) and
> append own column. In that column I should insert links (Edit, Show)
> or text ((disabled)). I think I can do it using following
> functionality:
> http://wiki.github.com/activescaffold/active_scaffold/show-overrides . Is
> it correct way?
>
> > You can exclude the action or define security methods to disable for some
> > records. It's documented in the wiki
>
> Yes, I have read
> http://wiki.github.com/activescaffold/active_scaffold/security, but I see
> that functionality can hide actions for all records
> simultaneously, but I want to hide some actions for some records
> separately as described above.

You need security methods in model, and actions will be disabled for records 
not authorized for that action.

>
> > > Thanks,
> > >   Maxim Dobriakov
> >
> > --
> > Sergio Cambra .:: entreCables S.L. ::.
> > Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
> > T) 902 021 404 F) 976 52 98 07 E) [email protected]
>
> 


-- 
Sergio Cambra .:: entreCables S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

--~--~---------~--~----~------------~-------~--~----~
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. ::.
      • ... 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