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

Jon Thomas
Jon Thomas
8,916 Points

Ruby on Rails code challenge help

Could really use some tips while trying to accomplish code challenges. Maybe it's the same for other languages too, but I've had to resort to stack overflow or forum searches in order to make it passed some of them. Something to give you a little nudge in the right direction would be a godsend.

4 Answers

James Barnett
James Barnett
39,199 Points

@Jon -

You can ask your questions the code challenges here, that's the main purpose of this forum.

Also Stack Overflow and Google are great resources, for programming questions and not just for questions when you are just starting out.

Jon Thomas
Jon Thomas
8,916 Points

Thanks. I wasn't aware that the code challenges were meant to be approached that way. It would be very helpful if in the code challenges, users were encouraged to visit the forums if they get stuck. I keep peeking back and my code and sometimes the challenges don't really match what I reviewed in the video. That's the only time it gets hard. So, sometimes I don't really learn anything new because there's some new code or concept that wasn't really covered. So, I find an answer somewhere, but no explanation for what I just typed, and I'm still left scratching my head and thinking, "ok, why does that pass?"

James Barnett
James Barnett
39,199 Points

@Jon - My advice is don't follow the videos too closely. They are meant descriptive not prescriptive.

Some people get tripped up by variable names and other stuff that differs between the videos and the code challenges, they aren't meant to match perfectly.

Personally I don't think you can ever learn everything from one source. One issue people run into with Ruby on Rails, is lack of knowledge in Ruby itself.

There are several good online resources you can check out:

For rails specific stuff you can check out this Rails Beginner's Guide

Jon Thomas
Jon Thomas
8,916 Points

Thanks for the links @james. Just purchased and downloaded Learn Ruby the Hard Way and that Rails Beginner's Guid looks like another great resource. I also plan on doing some of the Ruby vids after the Rails course. I'll also adjust my expectations a little about these resources and utilize the forums and additional resources more.

I hope none of that came across very negative. Overall the membership is worth every penny.