mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Updated documentation for block helpers in url_helper.rb
This commit is contained in:
@@ -162,7 +162,7 @@ module ActionView
|
||||
#
|
||||
# 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">
|
||||
|
||||
Reference in New Issue
Block a user