单位申请记录用户信息(添加user_id)
This commit is contained in:
parent
5883b451ca
commit
f35b33b09e
|
@ -180,7 +180,7 @@ class SchoolController < ApplicationController
|
||||||
applyschool.city = params[:city]
|
applyschool.city = params[:city]
|
||||||
applyschool.address = params[:address]
|
applyschool.address = params[:address]
|
||||||
applyschool.remarks = params[:remarks]
|
applyschool.remarks = params[:remarks]
|
||||||
|
applyschool.user_id = User.current.id
|
||||||
if applyschool.save
|
if applyschool.save
|
||||||
data[:school_id] = school.id
|
data[:school_id] = school.id
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue