# Issues with restful\_authentication

**URL:** <https://www.ruby-forum.com/t/issues-with-restful-authentication/134239>\
**Category:** Rails\
**Created:** [April 9, 2008, 7:38am UTC](https://www.ruby-forum.com/t/issues-with-restful-authentication/134239 "2008-04-09T07:38:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 9, 2008, 7:38am UTC](https://www.ruby-forum.com/t/issues-with-restful-authentication/134239/1 "2008-04-09T07:38:50Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 10, 2008, 11:12pm UTC](https://www.ruby-forum.com/t/issues-with-restful-authentication/134239/2 "2008-04-10T23:12:02Z")

</div>

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, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
