UsersController#create中的ActionDispatch :: Cookies :: CookieOverflow
尝试打开页面时出现此错误。我不知道如何调试此错误。您对此问题有什么建议吗?
def create
@user = User.new(params[:user])
sign_in @user
if @user.save
@user.folders.create(:folder_name=>"Default Folder", :user_id=>@user.id)
flash[:success] = "Welcome to Bunch<it>! "
redirect_to @user
else
@title = "Sign up"
render 'new'
end
end
def sign_in(user)
cookies.permanent.signed[:remember_token] = [user.id, user.salt]
session[:current_user] = user
current_user = user
end
Devise
并且在运行迁移后没有重新启动开发服务器。一旦我做了,错误就停止了。