undefined local variable or method `confirmed_at' for #<User:0x24f3f88>

1,368 views
Skip to first unread message

SWEngineer

unread,
Aug 8, 2010, 5:54:43 PM8/8/10
to Devise
I'm following the devise Rails cast here: http://railscasts.com/episodes/209-introducing-devise

After I signup, I get the following:

http://paste.pocoo.org/show/247793/

Any ideas?

Thanks.

SWEngineer

unread,
Aug 8, 2010, 5:56:34 PM8/8/10
to Devise
I want to mention that I'm using Rails3.0.0.rc

SWEngineer

unread,
Aug 8, 2010, 6:06:00 PM8/8/10
to Devise
I have now removed :confirmable from user.rb, and got:

undefined local variable or method `root_path' for
#<Devise::RegistrationsController:0x25327b0>

Carlos Antonio da Silva

unread,
Aug 8, 2010, 6:22:28 PM8/8/10
to plataforma...@googlegroups.com
You need to define a root_path in your routes that Devise will redirect to after a successful sign in.
--
At.
Carlos A. da Silva

SWEngineer

unread,
Aug 8, 2010, 6:44:30 PM8/8/10
to Devise
Thanks Carlos.

I tried to make the application from scratch again, and
notices that I get the following when I run: $ rake db:migrate
(in /Users/abder/Desktop/Rails/auth)
== DeviseCreateUsers: migrating
==============================================
-- create_table(:users)
rake aborted!
An error has occurred, this and all later migrations canceled:

undefined method `registerable' for
#<ActiveRecord::ConnectionAdapters::TableDefinition:0x1b2c8c4>

(See full trace by running task with --trace)

And, here are the "user.rb" and the migration files:

http://paste.pocoo.org/show/247801/

http://paste.pocoo.org/show/nfaacBVbVnsby4cAJnR8/

Thanks.


On Aug 8, 5:22 pm, Carlos Antonio da Silva
<carlosantoniodasi...@gmail.com> wrote:
> You need to define a root_path in your routes that Devise will redirect to
> after a successful sign in.
>

SWEngineer

unread,
Aug 8, 2010, 6:55:34 PM8/8/10
to Devise
I have to REMOVE (Comment out) the following from the migration file
for the $ rake db:migrate to work:

t.registerable
t.validatable

Is that anything to do with Rails3.0.0.rc which I'm using?

Carlos Antonio da Silva

unread,
Aug 9, 2010, 11:59:47 AM8/9/10
to plataforma...@googlegroups.com
Registerable and Validatable are not supposed to be in the migration, because they do not need any specific database attribute.
Reply all
Reply to author
Forward
0 new messages