method

build_year_options

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: ActionView::Helpers::DateTimeSelector
build_year_options(selected, options = {}) private

Build select option HTML for year.

build_year_options(1998, start: 1998, end: 2000)
=> "<option value="1998" selected="selected">1998</option>
    <option value="1999">1999</option>
    <option value="2000">2000</option>"
Show source
Register or log in to add new notes.