Module: ContactFormHelper
- Defined in:
- app/helpers/contact_form_helper.rb
Overview
View helper: contact form.
Instance Method Summary collapse
- #decision_maker_select_options ⇒ Object
- #purchasing_frequency_select_options ⇒ Object
- #source_list_simple_select_options ⇒ Object
Instance Method Details
#decision_maker_select_options ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/helpers/contact_form_helper.rb', line 14 def %i[ flooring_contractor electrical_contractor general_contractor architect_builder designer homeowner other ].map { |dm| [dm.to_s.titleize, dm.to_s] } end |
#purchasing_frequency_select_options ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/helpers/contact_form_helper.rb', line 4 def { "Never" => 'Never', "1-2 per month" => '1-2-month', "3-5 per month" => '3-5-month', "6-10 per month" => '6-10-month', "10-month" => '10+ per month' } end |
#source_list_simple_select_options ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 |
# File 'app/helpers/contact_form_helper.rb', line 26 def %i[ referal_from_a_contractor referal_from_a_homeowner magazine_or_press internet_search internet_social internet_other_website other ].map { |dm| [dm.to_s.titleize, dm.to_s] } end |