On 08/05/2010 06:05 PM, gs84 wrote:
Thanks for your answer, but can you give me more explanations about
the sorting
Create a folder named
active_scaffold/frontends/gs84/views
and set
ActiveScaffold.set_defaults do |config|
config.frontend = :gs84
end
in app/controllers/application_controller.rb.
Now AS will look for overwritten partials in the directory you just
created. Now copy "_list_actions.html.erb" from frontend/default/views
into frontend/gs84/views and modify it:
active_scaffold_config.action_links is an array, and as - by coincidence
- you'd like a reverse alphabetical sorting, you could try writing
<% active_scaffold_config.action_links.sort{|x,y| y.label <=> x.label
}.each ...
You might have to exchange x and y in the "|x,y|" block.
good luck!
ben
--
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.