单位申请记录用户信息(添加user_id)

This commit is contained in:
daiao 2016-07-27 10:36:08 +08:00
parent 5883b451ca
commit f35b33b09e
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ class SchoolController < ApplicationController
applyschool.city = params[:city]
applyschool.address = params[:address]
applyschool.remarks = params[:remarks]
applyschool.user_id = User.current.id
if applyschool.save
data[:school_id] = school.id
else