On Sábado, 31 de Julio de 2010 09:17:50 Andrey Voronkov escribió: > I want to add action link to each record of my Programs table like this: > config.action_links.add 'Report', :controller => 'report', :action => > 'new', > > :type => :member, :inline => false > > As you can see, this link follows to the reports controller do make a > report and it should be based on program id. > As a member link it passes an id of program in url: > http://localhost:3000/report/new/138?_method=get > But I want link like this: > http://localhost:3000/report/new/?_method=get&program_id=138 > So how to pass a program_id parameter instead of id?
It's not possible, you only can do it setting that link in a virtual column with a helper override. -- 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.
