select(method, choices = nil, options = {}, html_options = {}, &block)
Instance Public methods
Wraps ActionView::Helpers::FormOptionsHelper#select
for form builders:
<%= form_for @post do |f| %>
<%= f.select :person_id, Person.all.collect { |p| [ p.name, p.id ] }, include_blank: true %>
<%= f.submit %>
<% end %>
Please refer to the documentation of the base helper for details.