I have a model for “Location” which has a title, description, and type. The type can be a “Bar”, “Restaurant”, etc. I want to have a select box in my view with the various options with multiple selections available.
How would i go about parsing the select box in my controller and storing it in the database?
If you want to use type as select box in a Location form, you could put the possible types inside the Location class.
View