tap/app/views/application/_form_collection_select.html.erb
2014-12-09 14:39:27 +01:00

5 lines
205 B
Text

<%# To pass options to the collection_select, add {options} as the last argument %>
<div class="form-group">
<%= f.label args.first %>:
<%= f.collection_select *args, {class: 'form-control'} %>
</div>