Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Other options that might be helpful:</p> <p>From here: <a href="http://apidock.com/rails/ActionView/Helpers/DateHelper/date_select" rel="nofollow">http://apidock.com/rails/ActionView/Helpers/DateHelper/date_select</a></p> <p>Options</p> <p><code>:use_month_numbers'</code> - Set to true if you want to use month numbers rather than month names (e.g. “2” instead of “February”).</p> <p><code>:use_short_month</code> - Set to true if you want to use abbreviated month names instead of full month names (e.g. “Feb” instead of “February”).</p> <p><code>:add_month_numbers</code> - Set to true if you want to use both month numbers and month names (e.g. “2 - February” instead of “February”).</p> <p><code>:use_month_names</code> - Set to an array with 12 month names if you want to customize month names. Note: You can also use Rails’ i18n functionality for this.</p> <p><code>:date_separator</code> - Specifies a string to separate the date fields. Default is “” (i.e. nothing).</p> <p><code>:start_year</code> - Set the start year for the year select. Default is Time.now.year - 5.</p> <p><code>:end_year</code> - Set the end year for the year select. Default is Time.now.year + 5.</p> <p><code>:discard_day</code> - Set to true if you don’t want to show a day select. This includes the day as a hidden field instead of showing a select field. Also note that this implicitly sets the day to be the first of the given month in order to not create invalid dates like 31 February.</p> <p><code>:discard_month</code> - Set to true if you don’t want to show a month select. This includes the month as a hidden field instead of showing a select field. Also note that this implicitly sets :discard_day to true.</p> <p><code>:discard_year</code> - Set to true if you don’t want to show a year select. This includes the year as a hidden field instead of showing a select field.</p> <p><code>:order</code> - Set to an array containing :day, :month and :year to customize the order in which the select fields are shown. If you leave out any of the symbols, the respective select will not be shown (like when you set :discard_xxx => true. Defaults to the order defined in the respective locale (e.g. [:year, :month, :day] in the en locale that ships with Rails).</p> <p><code>:include_blank</code> - Include a blank option in every select field so it’s possible to set empty dates.</p> <p><code>:default</code> - Set a default date if the affected date isn’t set or is nil.</p> <p><code>:disabled</code> - Set to true if you want show the select fields as disabled.</p> <p><code>:prompt</code> - Set to true (for a generic prompt), a prompt string or a hash of prompt strings for :year, :month, :day, :hour, :minute and :second. Setting this option prepends a select option with a generic prompt (Day, Month, Year, Hour, Minute, Seconds) or the given prompt string.</p> <p>If anything is passed in the html_options hash it will be applied to every select tag in the set.</p> <p>NOTE: Discarded selects will default to 1. So if no month select is available, January will be assumed.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload