mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix example code: use tasks instead of comments
This commit is contained in:
parent
abd47c15b8
commit
410d87744e
1 changed files with 1 additions and 1 deletions
|
@ -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.'
|
||||
|
|
Loading…
Reference in a new issue