ActionView::Helpers::FormOptionsHelper
weekday_options_for_select
API docs (Rails 8.1.4.1) ↗def weekday_options_for_select(selected = nil, index_as_value: false, day_format: :day_names, beginning_of_week: Date.beginning_of_week)
Description
Creates <option> elements for the days of the week.
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