order of album in collection form
This commit is contained in:
parent
838e504cba
commit
86be613479
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
<%= form.text_area :description %><br />
|
<%= form.text_area :description %><br />
|
||||||
|
|
||||||
<%= form.label :album %><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 />
|
<br />
|
Loading…
Add table
Reference in a new issue