On Martes, 15 de Septiembre de 2009 14:45:18 Rio escribió:
> Hi,
>
> I'm trying to figure out how to add an action_link to an alternative
> controller on a per_record basis.  I've tried a few things but no
> luck.  I thought the following should work, but I haven't had any
> luck.
>
> Any help/ideas on where to go would be appreciated.
>
> Thanks!
>
>
> config.action_links.add 'other_controller_action',
>
>         :controller => '/other',
>         :action => 'edit',
>         :type => :record, :label => 'Other Controller
>
> Action', :crud_type => :edit

crud_type must be one of :create, :read, :update or :destroy (c, r, u or d)
It's documented here:
http://wiki.github.com/activescaffold/active_scaffold/api-action-link

-- 
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