Module: Spree::RetailersHelper
- Defined in:
- app/helpers/spree/retailers_helper.rb
Instance Method Summary collapse
Instance Method Details
#state_nav_helper(retailers = []) ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/spree/retailers_helper.rb', line 3 def state_nav_helper(retailers=[]) states = retailers.collect(&:state).uniq return "" if states.empty? states.collect{|state| link_to(state, "##{state.downcase}") }.join(" | ").html_safe end |