Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby

David Eichel
David Eichel
28,860 Points

I think it's time we update the "Build a simple ruby on rails application." Rails 4 is out now...

It's causing all sorts of headaches for people who are using rails 4. You guys are making a bunch of ruby/rails videos (which is awesome). Do you think we could get an update on this one? I literally have spent all day doing treehouse (at least 7 hours) and I have only gotten through a few videos because almost everything the video is saying is all out of date. So the code they are typing literally just doesn't work.

Rails 4

Bootstrap 3

simple_form

All have had updates since this video has come out. Rails has even broken devise because permits are placed in the controller now.

Maciej Czuchnowski
Maciej Czuchnowski
36,440 Points

You can easily generate a Rails 3 project and work with the videos. It's just one 'gem install' command and one additional argument in "rails new" command. You also need to find an older Bootstrap version to make things look the same. But it can be useful to learn to work with legacy code.

3 Answers

David Eichel
David Eichel
28,860 Points

Those are 2 different projects.

Michael Hulet
Michael Hulet
47,881 Points

Yes, but I believe it's designed as a rewrite of the original course for Rails 4. I don't know why they haven't removed the original yet

Maciej Czuchnowski
Maciej Czuchnowski
36,440 Points

It's good to have a Rails 3 course around. When working as a developer, you will likely work with legacy code that uses Rails 3. It's useful to know the differences.

Michelle Cannito
Michelle Cannito
8,992 Points

The older course is much better. Each time something doesn't work, search the forum. You'll find the fix. Also, you'll become a better programmer, as your problem solving skills will increase. You may wind up in a job where your first assignment is to upgrade an existing application. Doing the older course will give you practice.

What currently are you stuck on? Have you searched this forum for the answer? Have you searched Google? Have you asked a specific question?

That older course is excellent-- I believe persistence is well worth the effort.

With the new course, you'll copy the code and it will work, but you won't really understand what the code is doing or how to write it yourself (unless you have some other Rails learning beforehand).

David Eichel
David Eichel
28,860 Points

This is true. And I 100% agree with you as I have learned a lot from solving the problems in the lessons. However, learning rails the first time through I would like to get a good understanding of how everything works FIRST and then I'll be able to approach and solve the problems much more efficiently. The last straw for me was when devise broke. I fixed it by copy pasting code(I hate to do that and don't recommend it EVER because you never learn from it) it was at that point that I just stopped and made this post. I don't want them to take it down because what you say is true but I would like to learn some more about the rails first before I try to tackle version issues.

Michael Hulet
Michael Hulet
47,881 Points

I haven't taken the first course, but I agree with your view on the second. I just finished the newer one, and I feel like I kinda know what was going on, but not enough to where I could actually write something of my own. Towards the end of the project, I encountered a bug where 2 brackets were being added at the top of every page, and I had no idea where they could've come from, so I couldn't remove them. I might take the first course, just to see what you mean, but the newer one, in my opinion, definitely has to be redone