diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-04 07:34:51 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-04 07:34:51 -0800 |
commit | be26d51f9eec59cb3a4f181a2d7390e6f26cbfc6 (patch) | |
tree | b26b869ec6aae7e31a8e1aaf9fb87e95024e2f0a /guides | |
parent | 0cbc2406ea9a03161d7ce4de9cae5ba0800a80e5 (diff) | |
parent | 3dc1a36b7025466984e90d67f35cacddb321425e (diff) | |
download | rails-be26d51f9eec59cb3a4f181a2d7390e6f26cbfc6.tar.gz rails-be26d51f9eec59cb3a4f181a2d7390e6f26cbfc6.tar.bz2 rails-be26d51f9eec59cb3a4f181a2d7390e6f26cbfc6.zip |
Merge pull request #8746 from tricknotes/remove-h-from-guides
ERB::Util::h is no longer generated in scaffold [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_support_core_extensions.md | 6 | ||||
-rw-r--r-- | guides/source/debugging_rails_applications.md | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index 23736020ec..dd589ff8e3 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -2413,9 +2413,9 @@ or yields them in turn if a block is passed: ```html+erb <% sample.in_groups_of(3) do |a, b, c| %> <tr> - <td><%=h a %></td> - <td><%=h b %></td> - <td><%=h c %></td> + <td><%= a %></td> + <td><%= b %></td> + <td><%= c %></td> </tr> <% end %> ``` diff --git a/guides/source/debugging_rails_applications.md b/guides/source/debugging_rails_applications.md index 2e90e8728c..524fe46408 100644 --- a/guides/source/debugging_rails_applications.md +++ b/guides/source/debugging_rails_applications.md @@ -29,7 +29,7 @@ The `debug` helper will return a \<pre>-tag that renders the object using the YA <%= debug @post %> <p> <b>Title:</b> - <%=h @post.title %> + <%= @post.title %> </p> ``` @@ -58,7 +58,7 @@ Displaying an instance variable, or any other object or method, in YAML format c <%= simple_format @post.to_yaml %> <p> <b>Title:</b> - <%=h @post.title %> + <%= @post.title %> </p> ``` @@ -88,7 +88,7 @@ Another useful method for displaying object values is `inspect`, especially when <%= [1, 2, 3, 4, 5].inspect %> <p> <b>Title:</b> - <%=h @post.title %> + <%= @post.title %> </p> ``` |