diff options
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/url_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index df728fd655..77f217b2d4 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -24,6 +24,7 @@ module ActionView else escape = true end + url = @controller.send(:url_for, options, *parameters_for_method_reference) escape ? html_escape(url) : url end @@ -57,6 +58,7 @@ module ActionView else tag_options = nil end + url = options.is_a?(String) ? options : self.url_for(options, *parameters_for_method_reference) "<a href=\"#{url}\"#{tag_options}>#{name || url}</a>" end |