diff options
author | Will <me@willcannings.com> | 2010-12-19 14:16:54 +1100 |
---|---|---|
committer | Will <me@willcannings.com> | 2010-12-19 14:16:54 +1100 |
commit | aebbbc78cceff32282d17068525a76acda71928b (patch) | |
tree | f31c847145a1cfd84fb6391a36e6ecc45e8b3c53 /actionpack/lib/action_controller | |
parent | 1a6c4c86ea55dd8d72807b54d24b92422a7cf329 (diff) | |
download | rails-aebbbc78cceff32282d17068525a76acda71928b.tar.gz rails-aebbbc78cceff32282d17068525a76acda71928b.tar.bz2 rails-aebbbc78cceff32282d17068525a76acda71928b.zip |
Fix respond_with example code so it makes sense
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/mime_responds.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/mime_responds.rb b/actionpack/lib/action_controller/metal/mime_responds.rb index 3474f09d33..a2e06fe0a6 100644 --- a/actionpack/lib/action_controller/metal/mime_responds.rb +++ b/actionpack/lib/action_controller/metal/mime_responds.rb @@ -208,8 +208,8 @@ module ActionController #:nodoc: # 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| |