Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%= if @profile
- fg = FeatureGroup.find_by_profile_name(@profile.class.to_s)
- @coll = SoftwareRelease.find_all_by_feature_group_id(fg.id).sort_by(&:name)
- options_from_collection_for_select(@coll, :id, :name, :selected => nil)
- else
- options_for_select([["Nothing to select", ""]])
- end %>
Add Comment
Please, Sign In to add comment