Methods
Attributes
[RW] | routes |
Class Public methods
Source: show
# File rails/actionpack/test/controller/routing_test.rb, line 1251 def initialize(routes) self.routes = routes end
Instance Public methods
Source: show
# File rails/actionpack/test/controller/routing_test.rb, line 1255 def url_for(options) only_path = options.delete(:only_path) path = routes.generate(options) only_path ? path : "http://named.route.test#{path}" end