order of album in collection form

This commit is contained in:
Espen Antonsen 2009-08-03 16:28:21 +02:00
parent 838e504cba
commit 86be613479

View file

@ -5,7 +5,7 @@
<%= form.text_area :description %><br />
<%= form.label :album %><br />
<%= collection_select :collection, :album_list, Album.find(:all), :id, :title, {:selected => @collection.albums.map{|album|album.id} }, {:multiple => true, :rows => 10} %><br />
<%= collection_select :collection, :album_list, Album.find(:all, :order => :title), :id, :title, {:selected => @collection.albums.map{|album|album.id} }, {:multiple => true, :rows => 10} %><br />
<br />