Advertisement
theminijohn

Untitled

Sep 15th, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.29 KB | None | 0 0
  1. <% grouped_options = {
  2.             'Albums' => @current_user.albums { |album| [album.name, "#{album.id}-Album"]},
  3.             'Shows' => @current_user.shows { |show| [show.name, "#{show.id}-Show"]}
  4.     } %>
  5.  
  6.     <%= select :clip, :attachable_id, grouped_options_for_select(grouped_options) %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement