Sha256: 2e8c4cef871f44031c6bd8753acf9029abff0da0b06f5fdf31de9a2ae468a0b6

Contents?: true

Size: 274 Bytes

Versions: 1

Compression:

Stored size: 274 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_templated_urls-0.1.1 lib/rails_templated_urls/view_helpers.rb