Reputation: 18521
Is there a simple way to present values in a list box in Ruby on Rails ? (something like adding the html select tag multiple attribute in ruby)
Upvotes: 0
Views: 3953
Reputation: 13925
You mean this?
select_tag "list[]", options_from_collection_for_select(@collection, "id", "name"), :multiple=>true
Upvotes: 8