修改新建需求时的校验问题

This commit is contained in:
baiyu 2013-08-20 17:34:33 +08:00
parent 7e44294dd1
commit a14460cef9
3 changed files with 6 additions and 2 deletions

View File

@ -229,8 +229,10 @@ class BidsController < ApplicationController
@bid.commit = 0 @bid.commit = 0
if @bid.save if @bid.save
redirect_to respond_path(@bid) redirect_to respond_path(@bid)
else
@bid.safe_attributes = params[:bid]
render :action => 'new_bid'
end end
render :action => 'new_bid'
end end
def more def more

View File

@ -1293,3 +1293,4 @@ en:
label_issue_query_condition: Query condition label_issue_query_condition: Query condition
label_issue_query: Query label_issue_query: Query
label_issue_cancel_query: Cancel query label_issue_cancel_query: Cancel query
field_reward_type: The type of reward

View File

@ -1314,3 +1314,4 @@ zh:
label_issue_query_condition: 查询条件 label_issue_query_condition: 查询条件
label_issue_query: 查询 label_issue_query: 查询
label_issue_cancel_query: 取消查询 label_issue_cancel_query: 取消查询
field_reward_type: 奖励类型