tap/app/views/application/_form_collection_select.html.erb

6 lines
205 B
Text
Raw Normal View History

2014-12-09 14:39:27 +01:00
<%# 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>