单位申请记录用户信息(添加user_id)
This commit is contained in:
parent
5883b451ca
commit
f35b33b09e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue