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 trialGesang Lamu
2,742 Pointsversion 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
Salman Akram
Courses Plus Student 40,065 PointsHi Gesang,
This thread is going to answer your question[https://teamtreehouse.com/forum/ruby-track] explained by Maciej Czuchnowski
;)
Maciej Czuchnowski
36,441 PointsIf 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
36,441 PointsIf you search this forum, you may find some answers on what to do when you use Rails 4 in this course.
Gesang Lamu
2,742 PointsI 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
36,441 PointsThat 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.
matt67
14,205 PointsGesang, did you get the following error message?:
undefined method `first_name' for #<User:......
Innokenty Rozenberg
200 PointsHey 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>
matt67
14,205 PointsUnfortunately, this video is outdated. You are probably using rails 4 but this video is for 3. Read the answers above for more info.