Permalink
Browse files

Updated documentation for block helpers in url_helper.rb

  • Loading branch information...
1 parent 8cc5577 commit e98474096a6a514b2a5c29907a261229a4953273 @jeroenvandijk jeroenvandijk committed Mar 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/url_helper.rb
@@ -162,7 +162,7 @@ def url_for(options = {})
#
# You can use a block as well if your link target is hard to fit into the name parameter. ERb example:
#
- # <% link_to(@profile) do %>
+ # <%= link_to(@profile) do %>
# <strong><%= @profile.name %></strong> -- <span>Check it out!</span>
# <% end %>
# # => <a href="/profiles/1">

0 comments on commit e984740

Please sign in to comment.