7
Cookie在Rails应用程序中溢出?
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
106
ruby-on-rails