Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Getting started guide: Post validation example is clearer if we do p=…

…Post.new;p.save better than p=Post.create;p.save
  • Loading branch information...
commit 1dddc79fee290702ccef75834ab85fddf3a5fd8f 1 parent b0fab0c
@jaimeiniesta jaimeiniesta authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/guides/source/getting_started.textile
View
2  railties/guides/source/getting_started.textile
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.