Permalink
Browse files

Fix respond_with example code so it makes sense

  • Loading branch information...
1 parent 1a6c4c8 commit aebbbc78cceff32282d17068525a76acda71928b @willcannings willcannings committed Dec 19, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/metal/mime_responds.rb
@@ -208,8 +208,8 @@ def respond_to(*mimes, &block)
# It also accepts a block to be given. It's used to overwrite a default
# response:
#
- # def destroy
- # @user = User.find(params[:id])
+ # def create
+ # @user = User.new(params[:user])
# flash[:notice] = "User was successfully created." if @user.save
#
# respond_with(@user) do |format|

0 comments on commit aebbbc7

Please sign in to comment.