On Jueves, 5 de Agosto de 2010 16:54:54 Benjamin Adler escribió:
> On 08/05/2010 04:19 PM, gs84 wrote:
> > On my active scaffold list view, i wanted to  change de default order
> > of actions like this: show, edit, delete.
>
> You should not trust me, but I think thats being generated in
>
> active_scaffold/frontends/default/views/_list_actions.html.erb
>
> So I would overwrite that and patch
> "active_scaffold_config.action_links.each" to include some sorting.

That line iterates over action_links, which are created in 
lib/active_scaffold.rb, iterating over active_scaffold_config.actions. So 
overriding config.actions in the controller you will get another order.

If you want another default order, use set_defaults in ApplicationController:
ActiveScaffold.set_defaults do |config|
  config.actions = [:create, :list, :search, :show, :update, :delete, :nested, 
:subform]

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