Billy Logan
Billy Logan

Reputation: 2520

Similar select boxes in Rails

Is this possible to create several select boxes in Rails with the same options? And then create an object based on those selected values?

For example:

enter image description here

Upvotes: 0

Views: 42

Answers (1)

oreoluwa
oreoluwa

Reputation: 5633

Is it possible? Yes, but such usage is dependent on your application and why you'd want to use it in the first place. Also, in order to use something like this, you have to ensure that the select fields don't have the same name, otherwise one would override the other.

Upvotes: 1

Related Questions