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
Henri Viiralt
9,092 PointsTreebook woes
Hi,
I've been following the Treebook Rails project along and have run into a few problems. After I added <div><%= f.label :first_name %><br /> <%= f.text_field :first_name %></div> + last_name, profile_name to index.html.erb, I couldn't get my rails server up, so I added protected_attributes to the Gemfile.
While this helped to get the server back up again, I get sign up errors now, saying that the email/password fields can't be blank, even though I've entered values for both fields. Also, when I try to search for the first user in order to delete it, user = User.first via IRB, I get this: " User Load (0.4ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 => nil ".
1 Answer
Jason Seifer
Treehouse Guest TeacherWhat version of Rails are you running?
Henri Viiralt
9,092 PointsHenri Viiralt
9,092 Points4.0.0
Jason Seifer
Treehouse Guest TeacherJason Seifer
Treehouse Guest TeacherThat's probably one of your issues. Try using 3.2.13 and following along -- that's what the lessons are on and will give you the least amount of trouble.
Henri Viiralt
9,092 PointsHenri Viiralt
9,092 PointsCheers, back on track. Also, I must say that your trademark grin still gets me every time, hands down the best things on Treehouse, you should look into getting that thing patented. Keep on truckin'!