Welcome to the Treehouse Community
Looking to learn something new?
Nthulane MakgatoCourses Plus Student 19,602 Points
Outdated Treebook/house lessons
I have been on the Ruby track building Treebook, I came across a problem and after scouring the forum and found a post where the moderator advised that I should start from scratch with the old version of rails. https://teamtreehouse.com/forum/getting-this-error-message-nomethoderror-in-statusesshow
After all the hours that I have poured into this track?!?!?!?
Is not Rails 4.0 a more advanced version of 3.2? It sounds counter productive to have to downgrade, to follow the tutorial if i'm going to struggle with version 4 anyway.
Having to downgrade to version Rails 3.2 comes across as though I made a mistake or missed something in the lessons that highlighted that we must specifically use 3.2, which is not the case.
This is becoming especially frustrating because earlier in the track when we were taught bootstrap, I downloaded and synchronised the latest version of bootstrap only to struggle later on because my website didn't look like the one in the video(and not in a small way), so I had to scour forums like I am now for a solution. I found a link to an older version of bootstrap and had to start from scratch. And now I have to start all over... again? Even link next to the bootstrap video had the latest version of bootstrap v3.1.1 yet the one in the video is closer to v2.3.2.
If I start from scratch now, how do I know I won't have to do it again with some other outdated video down the line.
We have enough forum posts about Treebook inconsistencies because of bootstrap version and "attr_accessible" that are no longer relevant, that prove my argument.
Why doesn't Treehouse update its videos?
Lisa Rossiter3,630 Points
just upgrade the bloody videos. We pay for treehouse it's not like its free!!
James Barnett39,199 Points
> Is not Rails 4.0 a more advanced version of 3.2? It sounds counterproductive to have to downgrade
Not that's not correct. In the real world when running sites in production the goal is stability. So you don't try to fix things that aren't broken. Upgrading a package like Rails is a major undertaking for testing and QA. You will often work with multiple versions of various gems (that's why
rvm exists) across different projects.
Working with a known quantity is a best practice both when working from a tutorial and when developing on an existing site.
"Updating videos is expensive and time consuming." -> Isn't that treehouse's business? They create, (hopefully update), and release videos and charge consumers a fee for those videos.
I also agree. I just spent almost a whole day building and troubleshooting the treebook app, just to find out that the version of Rails and Bootstrap I am using are not compatible with the tutorial. Add modifications we should take, should we be on the most recent versions, or a warning to not use any other versions.
Updating videos is expensive and time consuming. While I agree that they should update their videos as soon as possible it is understandable that it will take them a while. However, they should strongly WARN students that they should only use the version of Rails that the videos were made with.
David Wilbur2,535 Points
I would actually recommend trying the tutorial with Rails 4 and Bootstrap 3. Sure, it would be easier if they updated the videos, but this way it forces you to actually think about what you're doing rather than blindly following the tutorial. There are really only a few differences you have to watch out for anyways. Attr_accessible doesn't work in Rails 4. You need to address these in the controller rather than the model now:
private def status_params params.require(:status).permit(:user_id, :content, document_attributes: [:attachment, :remove_attachment] ) if params[:status] end
All the differences between Bootstrap 2 and 3 are outlined here.
Biggest bootstrap changes you face in the tutorial are that "span*" is now "col-md-*" and "btn" is now "btn btn-default".