diff options
author | Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-25 19:10:15 +1100 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-25 20:34:44 +1100 |
commit | c3743c7ff777ac796319f14e306aaf4b7af8585c (patch) | |
tree | 1bdda7c68c87f639a197d4fafb1ffdf0e6f6c758 /railties/guides/source/getting_started.textile | |
parent | cdba13e504f0d6d2bda8ecb55e95a7e79f81516a (diff) | |
download | rails-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.textile | 4 |
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. |