From c3743c7ff777ac796319f14e306aaf4b7af8585c Mon Sep 17 00:00:00 2001 From: Mikel Lindsaar Date: Mon, 25 Jan 2010 19:10:15 +1100 Subject: Updated formatting on shell code to fit --- railties/guides/source/getting_started.textile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'railties') 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 -=> #["can't be blank", "is too short (minimum is 5 characters)"], :name=>["can't be blank"]}> +=> #["can't be blank", + "is too short (minimum is 5 characters)"], + :name=>["can't be blank"]}> 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. -- cgit v1.2.3