From 3189961f76bc35b95eb5bc64a01c7626e1077d11 Mon Sep 17 00:00:00 2001 From: Earl J St Sauver Date: Sun, 22 Sep 2013 16:52:03 -0700 Subject: Fix link_to return value The documentation is showing the link_to method as just returning the contents of the url_for method. It should be returning an "" tag with the correct href set. --- actionpack/lib/action_dispatch/routing/url_for.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb index 8e19025722..bcebe532bf 100644 --- a/actionpack/lib/action_dispatch/routing/url_for.rb +++ b/actionpack/lib/action_dispatch/routing/url_for.rb @@ -20,7 +20,7 @@ module ActionDispatch # # <%= link_to('Click here', controller: 'users', # action: 'new', message: 'Welcome!') %> - # # => "/users/new?message=Welcome%21" + # # => Click here # # link_to, and all other functions that require URL generation functionality, # actually use ActionController::UrlFor under the hood. And in particular, -- cgit v1.2.3