ActionView::Helpers::FormOptionsHelper
select
API docs (Rails 8.1.4.1) ↗def select(object, method, choices = nil, options = {}, html_options = {}, &block)
Description
Creates a <select> bound to a model attribute, with its <option> elements.
ERB
Changes from the previous output: Added Removed Changed
HTML
Preview
Interacting with the preview updates the form submission.
Form submission
Form data
| name | value |
|---|
Request body
Content-Type:
params