Skip to content

Instantly share code, notes, and snippets.

@Siron
Created March 31, 2013 22:50
Show Gist options
  • Save Siron/5282326 to your computer and use it in GitHub Desktop.
Save Siron/5282326 to your computer and use it in GitHub Desktop.
<%= f.fields_for @page.album_page do |album_page_form| %>
<%= album_page_form.label :album_id, t('.join_page_with_album') %>
<%= album_page_form.grouped_collection_select( :album_id, Refinery::PhotoGallery::Collection.includes(:albums).all, :albums, :title, :id, :title,
{ :include_blank => true},
{ :data => {
:placeholder=> t('.choose_album')},
:multiple=> false,
:class=> "chzn-select-deselect",
:style=>"min-width: 300px;"
}) %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment