devin.austin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Apr-09 05:38 UTC
Issues with restful_authentication
Hiya all, Newbie to RoR but not MVC, I''ve worked extensively with Catalyst in perl, so this RoR stuff is pretty neat to me. Anyway, I''m have a heck of a time working with restful_authentication (http://agilewebdevelopment.com/plugins/restful_authentication). I''ve run through the installation, and the instructions on how to generate an authenticated user controller, but I keep receiving this error: undefined method `activation_code='' for #<User:0xb76d3550> I PRAY this is something I''m doing wrong, because I''ve exhausted my minimal knowledge as far as reinstalling, deleting and starting over with the app, etc. Thanks in advance for the help! -Devin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Devin, Post your migration or table definitions. That error looks like what would happen if you didn''t have "activation_code" defined as a string parameter on the users table. For example, my migration for my users table looks like: create_table :users, :force => true do |t| t.string :first, :last, :email, :null => false t.datetime :last_login_at, :remember_token_expires_at, :activated_at t.string :crypted_password, :salt, :activation_code, :limit => 40 t.string :remember_token t.timestamps end -Danimal On Apr 8, 11:38 pm, "devin.aus...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <devin.aus...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hiya all, > > Newbie to RoR but not MVC, I''ve worked extensively with Catalyst in > perl, so this RoR stuff is pretty neat to me. > > Anyway, I''m have a heck of a time working with restful_authentication > (http://agilewebdevelopment.com/plugins/restful_authentication). I''ve > run through the installation, and the instructions on how to generate > an authenticated user controller, but I keep receiving this error: > > undefined method `activation_code='' for #<User:0xb76d3550> > > I PRAY this is something I''m doing wrong, because I''ve exhausted my > minimal knowledge as far as reinstalling, deleting and starting over > with the app, etc. > > Thanks in advance for the help! > > -Devin--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---