1
0
Fork 0
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:
Jaime Iniesta 2010-07-11 21:47:31 +02:00
parent b0fab0c5c4
commit 1dddc79fee

View file

@ -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>