Permalink
Browse files

Updated formatting on shell code to fit

  • Loading branch information...
1 parent cdba13e commit c3743c7ff777ac796319f14e306aaf4b7af8585c @mikel mikel committed Jan 25, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 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.

0 comments on commit c3743c7

Please sign in to comment.