Sha256: ee7482d7a5588dbd8f79c87733ac326b3c491ef6e7ee2ad419d8f75c4cabdcb7

Contents?: true

Size: 286 Bytes

Versions: 2

Compression:

Stored size: 286 Bytes

Contents

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

    def templated_path(name, *params)
      Builder.new(name, params, self, Rails.application.routes).path
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_templated_urls-0.1.3 lib/rails_templated_urls/view_helpers.rb
rails_templated_urls-0.1.2 lib/rails_templated_urls/view_helpers.rb