Skip to content
activescaffold edited this page Sep 14, 2010 · 6 revisions

active_scaffold_config.action_links.each

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] 
end
Clone this wiki locally