早些时候我没有找到令牌。在建议更改之后,我得到了这个新错误
确认令牌不能为空。
使用滑轨-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
结尾
由于设计版本不兼容,您无法应用所提到的问题的解决方案。只需将您的最后一行替换app/views/<user>/mailer/confirmation_instructions.html.erb
为以下行
<p><%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句