edit 图标丢失

bid修改文件保存
This commit is contained in:
yanxd 2014-05-17 10:44:01 +08:00
parent cb23b54d01
commit 63af60d7b6
2 changed files with 2 additions and 2 deletions

View File

@ -732,9 +732,9 @@ class BidsController < ApplicationController
def update
@bid = Bid.find(params[:id])
@project = @bid.courses.first#Project.find(params[:course_id])
if @bid.update_attributes(params[:bid])
@bid.save_attachments(params[:attachments] || (params[:bid] && params[:bid][:uploads]))
if @bid.update_attributes(params[:bid]) && @bid.save
flash[:notice] = l(:label_update_homework_succeed)
#@project = Project.find(params[:course_id])
redirect_to project_homework_path(@project)
else
@bid.safe_attributes = params[:bid]

BIN
public/images/edit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 522 B