mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ERB::Util::h is no longer generated in scaffold
This commit is contained in:
parent
0cbc2406ea
commit
3dc1a36b70
2 changed files with 6 additions and 6 deletions
|
@ -2413,9 +2413,9 @@ or yields them in turn if a block is passed:
|
||||||
```html+erb
|
```html+erb
|
||||||
<% sample.in_groups_of(3) do |a, b, c| %>
|
<% sample.in_groups_of(3) do |a, b, c| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%=h a %></td>
|
<td><%= a %></td>
|
||||||
<td><%=h b %></td>
|
<td><%= b %></td>
|
||||||
<td><%=h c %></td>
|
<td><%= c %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
```
|
```
|
||||||
|
|
|
@ -29,7 +29,7 @@ The `debug` helper will return a \<pre>-tag that renders the object using the YA
|
||||||
<%= debug @post %>
|
<%= debug @post %>
|
||||||
<p>
|
<p>
|
||||||
<b>Title:</b>
|
<b>Title:</b>
|
||||||
<%=h @post.title %>
|
<%= @post.title %>
|
||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ Displaying an instance variable, or any other object or method, in YAML format c
|
||||||
<%= simple_format @post.to_yaml %>
|
<%= simple_format @post.to_yaml %>
|
||||||
<p>
|
<p>
|
||||||
<b>Title:</b>
|
<b>Title:</b>
|
||||||
<%=h @post.title %>
|
<%= @post.title %>
|
||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ Another useful method for displaying object values is `inspect`, especially when
|
||||||
<%= [1, 2, 3, 4, 5].inspect %>
|
<%= [1, 2, 3, 4, 5].inspect %>
|
||||||
<p>
|
<p>
|
||||||
<b>Title:</b>
|
<b>Title:</b>
|
||||||
<%=h @post.title %>
|
<%= @post.title %>
|
||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue