Module: Presenters::ProductHelpers
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/concerns/presenters/product_helpers.rb
Overview
ActiveSupport::Concern mixin: product helpers.
Instance Method Summary collapse
-
#section_intro(section) ⇒ String?
Returns the introductory blurb for a product page section, if one is defined.
-
#section_name(section) ⇒ String
Returns the display title for a product page section.
Instance Method Details
#section_intro(section) ⇒ String?
Returns the introductory blurb for a product page section, if one is defined.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'app/concerns/presenters/product_helpers.rb', line 35 def section_intro(section) case section when :controls 'A great control is the secret to any great heating system.' when :installation_kits 'With WarmlyYours’ installation kits, you can be sure that you have all the tools you need to install your floor-heating system.' when :control_electrical_rough_in_kits 'The Control Electrical Rough-in Kit carries all the essentials an electrician needs while installing and connecting a thermostat with an electric radiant heating system.' when :insulating_underlayments 'An insulating underlayment increases the efficiency of your floor heating system by preventing heat loss to your subfloor. Always recommended when installing on a concrete slab.' when :accessories 'Feel free to chat us if you have any questions about these items.' when :upgrades 'Enhance your product with one of these upgrades.' when :installation_methods 'Our TempZone Floor Heating cable can be installed using either the <b>Prodeso Membrane or fixing strips</b>. The membrane cuts down on installation time and provides uncoupling benefits, while the fixing strips are more economical and provide a greater degree of design flexibility. </p>' when :related_services 'Explore our collection of indoor and outdoor radiant heating services offered by our professionals.' end&.html_safe end |
#section_name(section) ⇒ String
Returns the display title for a product page section.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'app/concerns/presenters/product_helpers.rb', line 11 def section_name(section) case section when :reviews 'Customer Reviews' when :faq 'FAQs' when :accessories 'Accessories and Parts' when :floorplans 'Example Floor Plans' when :documents 'Documents' when :related_services 'Services' when :showcases 'See This Product in Action' else section.to_s.titleize end end |