Commit e4326515 authored by 神楽坂玲奈's avatar 神楽坂玲奈

修复用户不能注册问题

parent c1dbacae
...@@ -60,6 +60,9 @@ class UsersController < ApplicationController ...@@ -60,6 +60,9 @@ class UsersController < ApplicationController
# POST /users.xml # POST /users.xml
def create def create
@user = User.new(params[:user]) @user = User.new(params[:user])
#不知道什么原因,加了devise之后那两个字段就奇怪的变成空了
@user.name = params[:user][:name]
@user.password = params[:user][:password]
@actions = [User.human_attribute_name(:register)] @actions = [User.human_attribute_name(:register)]
respond_to do |format| respond_to do |format|
if @user.save if @user.save
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment