aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/getting_started.textile
diff options
context:
space:
mode:
authorMikel Lindsaar <raasdnil@gmail.com>2010-01-25 19:10:15 +1100
committerMikel Lindsaar <raasdnil@gmail.com>2010-01-25 20:34:44 +1100
commitc3743c7ff777ac796319f14e306aaf4b7af8585c (patch)
tree1bdda7c68c87f639a197d4fafb1ffdf0e6f6c758 /railties/guides/source/getting_started.textile
parentcdba13e504f0d6d2bda8ecb55e95a7e79f81516a (diff)
downloadrails-c3743c7ff777ac796319f14e306aaf4b7af8585c.tar.gz
rails-c3743c7ff777ac796319f14e306aaf4b7af8585c.tar.bz2
rails-c3743c7ff777ac796319f14e306aaf4b7af8585c.zip
Updated formatting on shell code to fit
Diffstat (limited to 'railties/guides/source/getting_started.textile')
-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.