2014-02-19 69 views
0

早些時候,我收到 - 令牌沒有找到。經過更改勸here我得到這個新的錯誤確認令牌不能爲空

確認令牌不能爲空。

使用Rails - 3.0.6 色器件 - 1.1.3 紅寶石 - 1.9.3

被敲打,因爲小時我的頭,我仍然一無所知,爲什麼不獲取接收的令牌。只有當用戶點擊通過郵件發送的確認鏈接後,纔會發生這種情況。任何指針我應該做的。請提前幫助,謝謝。

用戶模型

class User < ActiveRecord::Base 
    # TODO: Remove talent_seeker from here, set manually on creation 
    # Setup accessible (or protected) attributes for your model 
    attr_accessible :email, :password, :password_confirmation, :first_name, :last_name, :disabled, 
    :job_title, :company_name, :city, :state, :zip, :public_profile, :willing_to_relocate, :avatar, :resume, 
    :remove_avatar, :remove_resume, :html_resume_attributes, :upload_in_progress, :rb_resume 

+0

替換您app/views/<user>/mailer/confirmation_instructions.html.erb最後一行你得到這個錯誤,爲現有用戶或新創建的用戶? –

+0

這是一個客戶端應用程序,我只在本地託管,沒有用戶。 –

+0

請您發佈用戶模型?或者如果你不能,檢查是否有任何回調試圖以某種方式保存模型? –

回答

2

不能應用從你所提到的,由於設計版本不兼容問題的解決方案。只是下面的行

<p><%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p> 
+0

再次感謝爲了解決這個問題非常麻煩:) –

+0

你可以看看這裏 - http://stackoverflow.com/questions/21931171/rails-amazon-production-error –