mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix font formats and code examples indentation
This commit is contained in:
parent
7b15629b93
commit
a571314755
1 changed files with 17 additions and 17 deletions
|
@ -146,14 +146,14 @@ NOTE: For more information on Rails <i>scaffolding</i>, refer to "Getting Starte
|
|||
|
||||
When you use +rails generate scaffold+, for a resource among other things it creates a test stub in the +test/unit+ folder:
|
||||
|
||||
<pre>
|
||||
<shell>
|
||||
$ rails generate scaffold post title:string body:text
|
||||
...
|
||||
create app/models/post.rb
|
||||
create test/unit/post_test.rb
|
||||
create test/fixtures/posts.yml
|
||||
...
|
||||
</pre>
|
||||
</shell>
|
||||
|
||||
The default test stub in +test/unit/post_test.rb+ looks like this:
|
||||
|
||||
|
|
Loading…
Reference in a new issue