Skip to content
Browse files

Use a more idiomatic redirect_to example in the flash docs

  • Loading branch information...
1 parent c5c2473 commit 0a1c7b9df101b1f5921be0e1569c7fd007bd784a @packagethief packagethief committed Aug 27, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/metal/flash.rb
View
2 actionpack/lib/action_controller/metal/flash.rb
@@ -8,7 +8,7 @@ module ActionController #:nodoc:
# def create
# # save post
# flash[:notice] = "Successfully created post"
- # redirect_to posts_path(@post)
+ # redirect_to @post
# end
#
# def show

0 comments on commit 0a1c7b9

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