Module: Eac::CommonFormHelper::FormBuilder::YearMonthField
- Included in:
- Eac::CommonFormHelper::FormBuilder
- Defined in:
- lib/eac/common_form_helper/form_builder/year_month_field.rb
Instance Method Summary collapse
Instance Method Details
#year_month_field(field_name, options = {}) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/eac/common_form_helper/form_builder/year_month_field.rb', line 6 def year_month_field(field_name, = {}) field(field_name, ) do month_field(field_name) << ' / ' << year_field(field_name, [:years] || default_years) end end |