From 9d270e4b99ae0cd74ac814a0bad72e4427155ddf Mon Sep 17 00:00:00 2001 From: Mike Gunderloy Date: Thu, 16 Oct 2008 07:05:50 -0500 Subject: Minor formatting change in Getting Started guide. --- .../guides/getting_started_with_rails/getting_started_with_rails.txt | 3 --- 1 file changed, 3 deletions(-) (limited to 'railties/doc/guides/getting_started_with_rails/getting_started_with_rails.txt') 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 -- cgit v1.2.3