Skip to content
This repository
Browse code

Use common terminology

  • Loading branch information...
commit 279c3957237b049dead8d95db81ea1ff665ee78c 1 parent 27d42a5
Joost Baaij authored August 27, 2010
6  actionpack/lib/action_dispatch/middleware/flash.rb
@@ -10,13 +10,13 @@ def flash
10 10
 
11 11
   # The flash provides a way to pass temporary objects between actions. Anything you place in the flash will be exposed
12 12
   # to the very next action and then cleared out. This is a great way of doing notices and alerts, such as a create
13  
-  # action that sets <tt>flash[:notice] = "Successfully created"</tt> before redirecting to a display action that can
  13
+  # action that sets <tt>flash[:notice] = "Post successfully created"</tt> before redirecting to a display action that can
14 14
   # then expose the flash to its template. Actually, that exposure is automatically done. Example:
15 15
   #
16 16
   #   class PostsController < ActionController::Base
17 17
   #     def create
18 18
   #       # save post
19  
-  #       flash[:notice] = "Successfully created post"
  19
+  #       flash[:notice] = "Post successfully created"
20 20
   #       redirect_to posts_path(@post)
21 21
   #     end
22 22
   #
@@ -33,7 +33,7 @@ def flash
33 33
   # Since the +notice+ and +alert+ keys are a common idiom, convenience accessors are available:
34 34
   #
35 35
   #   flash.alert = "You must be logged in"
36  
-  #   flash.notice = "Successfully created post"
  36
+  #   flash.notice = "Post successfully created"
37 37
   #
38 38
   # This example just places a string in the flash, but you can put any object in there. And of course, you can put as
39 39
   # many as you like at a time too. Just remember: They'll be gone by the time the next action has been performed.

0 notes on commit 279c395

Please sign in to comment.
Something went wrong with that request. Please try again.