mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Provide consistant indentation for the example code
This commit is contained in:
parent
c02288e6fd
commit
941fae2cbb
1 changed files with 8 additions and 8 deletions
|
@ -78,14 +78,14 @@ The result of expressions follow them and are introduced by "# => ", vertically
|
||||||
If a line is too long, the comment may be placed on the next line:
|
If a line is too long, the comment may be placed on the next line:
|
||||||
|
|
||||||
<ruby>
|
<ruby>
|
||||||
# label(:post, :title)
|
# label(:post, :title)
|
||||||
# # => <label for="post_title">Title</label>
|
# # => <label for="post_title">Title</label>
|
||||||
#
|
#
|
||||||
# label(:post, :title, "A short title")
|
# label(:post, :title, "A short title")
|
||||||
# # => <label for="post_title">A short title</label>
|
# # => <label for="post_title">A short title</label>
|
||||||
#
|
#
|
||||||
# label(:post, :title, "A short title", :class => "title_label")
|
# label(:post, :title, "A short title", :class => "title_label")
|
||||||
# # => <label for="post_title" class="title_label">A short title</label>
|
# # => <label for="post_title" class="title_label">A short title</label>
|
||||||
</ruby>
|
</ruby>
|
||||||
|
|
||||||
Avoid using any printing methods like +puts+ or +p+ for that purpose.
|
Avoid using any printing methods like +puts+ or +p+ for that purpose.
|
||||||
|
|
Loading…
Reference in a new issue