在调用PrintDictionary后,我一直收到Segmentation Error:11。任何帮助将非常感激!据我所知,分段错误:11意味着我试图访问内存中的某个地方我不允许访问。但我根本无法在我的代码中找到这一点。在调用PrintDictionary并打印出所有值后,我总是得到它。
def create
respond_to do |format|
if User.update(user_params)
format.html { redirect_to profile_page_index_path, notice: 'Landlord application successfully submitted.' }
format.json { render :show, status: :created, location: @user }
else
format.html { redirect_to profile_page_index_path, notice: 'Landlord application was not successfully submitted.' }
format.json { render :show, status: :unprocessable_entity }
end
end
end