mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Getting started guide: Post validation example is clearer if we do p=Post.new;p.save better than p=Post.create;p.save
This commit is contained in:
parent
b0fab0c5c4
commit
1dddc79fee
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ $ rails console
|
|||
After the console loads, you can use it to work with your application's models:
|
||||
|
||||
<shell>
|
||||
>> p = Post.create(:content => "A new post")
|
||||
>> p = Post.new(:content => "A new post")
|
||||
=> #<Post id: nil, name: nil, title: nil,
|
||||
content: "A new post", created_at: nil,
|
||||
updated_at: nil>
|
||||
|
|
Loading…
Reference in a new issue