Sha256: 6c3e769c6a9befbb908aa58850e80ed3d2406834e3d1abff58307da1275b6554

Contents?: true

Size: 288 Bytes

Versions: 1

Compression:

Stored size: 288 Bytes

Contents

module RetailersHelper
  
  def state_nav_helper
    retailers = Retailer.select(:state).group(:state).order(:state).all
    return "" unless 1 < retailers.length
    retailers.collect{|retailer| link_to(retailer.state, "##{retailer.state.downcase}") }.join(" | ").html_safe 
  end 

end 

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_retailers-0.40.0.2 app/helpers/retailers_helper.rb