instance method
url_for
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
url_for(options)
Returns the URL for the given options, according to the rules specified in the application’s routes.
Parameters
-
optionsreq
Source
# File actionpack/lib/action_controller/integration.rb, line 226
def url_for(options)
controller ? controller.url_for(options) : generic_url_rewriter.rewrite(options)
end
Defined in actionpack/lib/action_controller/integration.rb line 226
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Integration::Session