aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJaime Iniesta <jaimeiniesta@gmail.com>2010-07-11 21:47:31 +0200
committerJaime Iniesta <jaimeiniesta@gmail.com>2010-07-11 21:47:31 +0200
commit1dddc79fee290702ccef75834ab85fddf3a5fd8f (patch)
tree1e21ddfa1b521b3844739c00408acba3e03ddb5a /railties
parentb0fab0c5c400bc5ca10908643e8b543767e50a29 (diff)
downloadrails-1dddc79fee290702ccef75834ab85fddf3a5fd8f.tar.gz
rails-1dddc79fee290702ccef75834ab85fddf3a5fd8f.tar.bz2
rails-1dddc79fee290702ccef75834ab85fddf3a5fd8f.zip
Getting started guide: Post validation example is clearer if we do p=Post.new;p.save better than p=Post.create;p.save
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/getting_started.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile
index 8e018437fd..7a5266ce2c 100644
--- a/railties/guides/source/getting_started.textile
+++ b/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>