|
|
@ -70,7 +70,9 @@ class HomeworkAttachController < ApplicationController
|
|
|
|
description = params[:homework_description]
|
|
|
|
description = params[:homework_description]
|
|
|
|
@homework.name = name
|
|
|
|
@homework.name = name
|
|
|
|
@homework.description = description
|
|
|
|
@homework.description = description
|
|
|
|
#@homework.save_attachments(params[:attachments])
|
|
|
|
if params[:attachments]
|
|
|
|
|
|
|
|
@homework.save_attachments(params[:attachments])
|
|
|
|
|
|
|
|
end
|
|
|
|
if @homework.save
|
|
|
|
if @homework.save
|
|
|
|
respond_to do |format|
|
|
|
|
respond_to do |format|
|
|
|
|
format.html { redirect_to project_for_bid_path @homework.bid }
|
|
|
|
format.html { redirect_to project_for_bid_path @homework.bid }
|
|
|
|