我正在使用Rails 3.有可能是重复的
here.但它没有解决我的问题,也没有任何其他的解决方案.
我的迁移如下
class AddConfirmabletoDevise < ActiveRecord::Migration def change change_table(:users) do |t| t.confirmable end add_index :users,:confirmation_token,:unique => true end end
我的rake db:migrate没有输出.我的注册页面给出错误:
undefined local variable or method 'confirmed_at' for #User
有人有线索吗?
解决方法
原文地址:https://www.jb51.cc/ruby/273286.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。