Module: ActiveScaffold::Bridges::CountryHelper::FormColumnHelpers
- Defined in:
- lib/active_scaffold/bridges/country_helper/country_helper_bridge.rb
Instance Method Summary collapse
- #active_scaffold_input_country(column, options) ⇒ Object
- #active_scaffold_input_usa_state(column, options) ⇒ Object
Instance Method Details
#active_scaffold_input_country(column, options) ⇒ Object
329 330 331 332 333 334 335 |
# File 'lib/active_scaffold/bridges/country_helper/country_helper_bridge.rb', line 329 def active_scaffold_input_country(column, ) = {:prompt => as_(:_select_)} .merge!() .reverse_merge!(column.).except!(:prompt, :priority) [:name] += '[]' if [:multiple] country_select(:record, column.name, column.[:priority] || [:united_states], , ) end |
#active_scaffold_input_usa_state(column, options) ⇒ Object
337 338 339 340 341 342 343 |
# File 'lib/active_scaffold/bridges/country_helper/country_helper_bridge.rb', line 337 def active_scaffold_input_usa_state(column, ) = {:prompt => as_(:_select_)} .merge!() .reverse_merge!(column.).except!(:prompt, :priority) [:name] += '[]' if [:multiple] usa_state_select(:record, column.name, column.[:priority], , ) end |