mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix formatting
This commit is contained in:
parent
2801efbc3b
commit
9ed385fe17
1 changed files with 1 additions and 1 deletions
|
@ -439,7 +439,7 @@ The +capture+ method allows you to extract part of a template into a variable. Y
|
|||
<% @greeting = capture do %>
|
||||
<p>Welcome! The date and time is <%= Time.now %></p>
|
||||
<% end %>
|
||||
<ruby>
|
||||
</ruby>
|
||||
|
||||
The captured variable can then be used anywhere else.
|
||||
|
||||
|
|
Loading…
Reference in a new issue