Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% grouped_options = {
- 'Albums' => @current_user.albums { |album| [album.name, "#{album.id}-Album"]},
- 'Shows' => @current_user.shows { |show| [show.name, "#{show.id}-Show"]}
- } %>
- <%= select :clip, :attachable_id, grouped_options_for_select(grouped_options) %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement