On Lunes, 6 de Julio de 2009 08:16:08 redbros escribió: > Hi, > > I'm new to ActiveScaffold. Just got it setup and trying to customize > it now. I need some help with the usage of the Action Link. I want to > add a link to a column for each of my record. According to this > http://activescaffold.com/docs/api-action-link I could do that by > > config.columns[:name].link
To set a link in a column: config.columns[:name].set_link 'action_name', :controller => 'controller_name' You can add more options, look at api: action link http://wiki.github.com/activescaffold/active_scaffold/api-action-link To add a link at right (next to edit, delete and show links): config.action_links.add 'action_name', :type => 'record', ... > > Doesn't seem to create a link on the table in each row. Also, how do I > add restful feature to the link (e.g.: Need to > add :action, :controller, :id > > I'm on ActiveScaffold version for rails 2.1 > > Any help is very much appreciated!!! > > -Dave > > -- 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 -~----------~----~----~----~------~----~------~--~---
