Permalink
Browse files

Merge pull request #7504 from behrends/patch-1

Fix example code: use tasks instead of comments [ci skip]
  • Loading branch information...
carlosantoniodasilva committed Sep 2, 2012
2 parents abd47c1 + 410d877 commit 1180e0c0e52c11a056f7a1bdfdb8e84c354e6f2a
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/metal/responder.rb
@@ -102,7 +102,7 @@ module ActionController #:nodoc:
#
# def create
# @project = Project.find(params[:project_id])
- # @task = @project.comments.build(params[:task])
+ # @task = @project.tasks.build(params[:task])
# respond_with(@project, @task, :status => 201) do |format|
# if @task.save
# flash[:notice] = 'Task was successfully created.'

0 comments on commit 1180e0c

Please sign in to comment.