order of album in collection form
This commit is contained in:
parent
838e504cba
commit
86be613479
|
@ -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 />
|
Loading…
Reference in a new issue