Sha256: e8769a3865f8ae6b11c9c259b891919ece9f484067b9565153c2894df81b33c0
Contents?: true
Size: 442 Bytes
Versions: 3
Compression:
Stored size: 442 Bytes
Contents
module C80Catoffers module UrlsHelper def my_url_for_offer(offer) s = '' if offer.has_category? s = "#{root_url}#{offer.category.slug}/#{offer.slug}" else s = "#{root_url}offers/#{offer.slug}" # TODO_MY:: хардкод в урле [аналогично в routes.rb] end s end def my_url_for_category(category) "#{root_url}categories/#{category.slug}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems