aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gunderloy <MikeG1@larkfarm.com>2008-10-16 07:05:50 -0500
committerMike Gunderloy <MikeG1@larkfarm.com>2008-10-16 07:06:36 -0500
commit9d270e4b99ae0cd74ac814a0bad72e4427155ddf (patch)
treeba02cd7497e0a81a26056652563593ab65b0a83a
parent7f744244e120ace985c85ec738da337f88f4f6f0 (diff)
downloadrails-9d270e4b99ae0cd74ac814a0bad72e4427155ddf.tar.gz
rails-9d270e4b99ae0cd74ac814a0bad72e4427155ddf.tar.bz2
rails-9d270e4b99ae0cd74ac814a0bad72e4427155ddf.zip
Minor formatting change in Getting Started guide.
-rw-r--r--railties/doc/guides/getting_started_with_rails/getting_started_with_rails.txt3
1 files changed, 0 insertions, 3 deletions
diff --git a/railties/doc/guides/getting_started_with_rails/getting_started_with_rails.txt b/railties/doc/guides/getting_started_with_rails/getting_started_with_rails.txt
index 5cc3db2748..0098f1d225 100644
--- a/railties/doc/guides/getting_started_with_rails/getting_started_with_rails.txt
+++ b/railties/doc/guides/getting_started_with_rails/getting_started_with_rails.txt
@@ -608,10 +608,7 @@ end
The +create+ action instantiates a new Post object from the data supplied by the user on the form, which Rails makes available in the +params+ hash. After saving the new post, it uses +flash[:notice]+ to create an informational message for the user, and redirects to the show action for the post. If there's any problem, the +create+ action just shows the +new+ view a second time, with any error messages.
-.The Flash
-**************************************************************************************************************
Rails provides the +flash+ hash (usually just called the Flash) so that messages can be carried over to another action, providing the user with useful information on the status of their request. In the case of +create+, the user never actually sees any page rendered during the Post creation process, because it immediately redirects to the new Post as soon Rails saves the record. The Flash carries over a message to the next action, so that when the user is redirected back to the +show+ action, they are presented with a message saying "Post was successfully created."
-**************************************************************************************************************
=== Showing an Individual Post