Answer the question
In order to leave comments, you need to log in
How to implement multiselect in select (rails)?
Hello, there is a table with drug prices.
I need to make a selection of several drugs from select, because now I can only select one drug.
<%= f.select( :user_prices, Price.all.map {|c| [c.title]}, {:multiple=>true}) %>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question