# File lib/action_dispatch/routing/url_for.rb, line 126 def url_for(options = nil) case options when String options when nil, Hash _routes.url_for((options || {}).reverse_merge!(url_options).symbolize_keys) else polymorphic_url(options) end end