Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Build a Simple Ruby on Rails Application Creating an Authentication System Generating the Devise Views

Harris Kunakira
Harris Kunakira
6,157 Points

I got the error NoMethodError in Devise::Registrations#new

Hi, I tried to do everything you did in the video but I still get error message. I can't find any solution for it anywhere. I'm using rails 4.1.1 I'm not sure if it because of different rails version or what.

Here's the message. https://drive.google.com/file/d/0B2UmSdhbmJtxTk92a3IxcFVrTXc/edit?usp=sharing

Thanks for your answer Sam

1 Answer

Nick Fuller
Nick Fuller
9,027 Points

Hi Sam,

Did you migrate the database? You need to add the "first_name" field to your users table. If you did, open your migration file and make sure you spelled it correctly. It should look like something like this

t.string :first_name
Harris Kunakira
Harris Kunakira
6,157 Points

Thank you for your answer nick. It turned out my rake db:migrate didn't work. So, I just restarted my laptop and it's working ok