0
我用devise創建一個用戶。確認說明被髮送到新用戶的電子郵件。當「確認我的帳戶」鏈接上點擊,一個新的頁面打開並顯示以下錯誤:未定義的方法`devise_error_messages!'點擊確認鏈接時爲類鏈接
NoMethodError at /users/confirmation
undefined method `devise_error_messages!' for #<#<Class:0x007fe016609818>:0x007fe0164c88f0>
在app/views/devise/confirmations/new.html.erb
4行出現的錯誤:
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
<%= devise_error_messages! %>
您可能會建議只刪除那條線。但它不是我的代碼。這是Devise gem文件之一。我不能也不應該編輯寶石本身。有些事情一定是錯的。這是怎麼回事?