module RailsTemplatedUrls module ViewHelpers def templated_url(name, *params) Builder.new(name, params, Rails.application.routes).url end def templated_path(name, *params) Builder.new(name, params, Rails.application.routes).path end end end