I have an app where the user can select a technology from a dropdown menu. I want to code in the most common options, as well as show the technologies in the database.
Is it possible to have predetermined options as well as the options in the tech column in one drop down menu? Something like this?
<%= f.select( :tech, [['Tech1'],['Tech2'],['Tech3'], ['Tech4'], Project.all.map {|p| [p.tech]}.uniq], :prompt => "Select a previous Technology") %>
Thanks
You can simply add arrays to concatenate them: