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

Gesang Lamu
Gesang Lamu
2,742 Points

version problem?

I am using rails 4.0.0 and I believe the tutorial is using earlier version. Although I followed step by step I can't get lot of the things to work. Like the sign up page I get different error message than the tutorial get. Should I switch to the same Rails version as the tutorial is using to to follow the tutorial? many thanks,

6 Answers

Hi Gesang,

This thread is going to answer your question[https://teamtreehouse.com/forum/ruby-track] explained by Maciej Czuchnowski

;)

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

If you want to follow the course step by step, you have to use the same versions of gems and Bootstrap OR use Treehouse's Virtual Machine dedicated for this course (it has proper versions of gems at least, I think). You may try to read up on Strong Parameters and try to translate things from Rails 3 to Rails 4 (and between other gems and their versions), but that might be frustrating.

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

If you search this forum, you may find some answers on what to do when you use Rails 4 in this course.

Gesang Lamu
Gesang Lamu
2,742 Points

I started to following the ODOT todo application, I got pretty far until the validation part. I never written test before but I followed, at least learned what its all about. Now my application has layers and layers of bugs, I am getting very frustrated. Should I stick to it and try to fix the bugs or start something else all over again, or even start another ODOT fresh? help :(

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

That depends. Are your failing tests mostly from automatically generated controllers? This could simply be the problem with newest version of RSpec and these tests are not so important (they got generated with scaffold and controller generators). With some tweaking you can get over this, don't worry :). For now, just make sure that the tests you are writing yourself (following Jason) are passing.

Gesang, did you get the following error message?:

undefined method `first_name' for #<User:......

Hey Adrian im getting that message

undefined method `first_name' for #<User:0x007fe8d4af25c0>

Around line 7 <dev><%= f.label :first_name %><br /> <%= f.text_field :first_name %></div>

  <dev><%= f.label :last_name %><br />
<%= f.text_field :last_name %></div>

Unfortunately, this video is outdated. You are probably using rails 4 but this video is for 3. Read the answers above for more info.