On Jueves, 8 de Abril de 2010 17:22:01 helmerj escribió:
> On 8 Apr., 17:12, helmerj <[email protected]> wrote:
> > > With latest master you can define security methods for custom actions.
> > > If your action is called activate, you can define
> > > authorized_for_activate? in your model.
>
> After the update my custom link does not show anymore, even before I
> add some security methods. Has the syntax been changed?
>
> This is my controller statement:
>
> config.action_links.add "accept_user", :action=>"accept_user",
>
>         :method=>:put, :type=>:record,
>         :label=>"Accept User", :crud_type=>:update,
>         :inline=>true

Yes, :record and :table for :type option were deprecated and in master are 
removed. You must use :member and :collection, as in routes definition.

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 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.

Reply via email to