aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/getting_started.textile4
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile
index 2886df3b63..3ad73ad038 100644
--- a/railties/guides/source/getting_started.textile
+++ b/railties/guides/source/getting_started.textile
@@ -479,7 +479,9 @@ created_at: nil, updated_at: nil>
>> p.save
=> false
>> p.errors
-=> #<OrderedHash {:title=>["can't be blank", "is too short (minimum is 5 characters)"], :name=>["can't be blank"]}>
+=> #<OrderedHash {:title=>["can't be blank",
+ "is too short (minimum is 5 characters)"],
+ :name=>["can't be blank"]}>
</shell>
This code shows creating a new +Post+ instance, attempting to save it and getting +false+ for a return value (indicating that the save failed), and inspecting the +errors+ of the post.