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 trialjoel bindi
11,923 PointsROR application doesnt include scripts and css
Hi, my project does not seem to be including the include files in the correct directory ? any ideas
1 Answer
Maciej Czuchnowski
36,441 PointsYou're probably using a newer version of Rails (videos are quite old, they use Rails 3). The directory tree is a bit different in Rails 4, which is not the biggest problem here, if you take a look at more forum discussions. Check the Gemfile - it should have an entry like this:
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.2'
If this is 4.0, like in my case, you will have to consider generating the whole application again from scratch using older Rails gem. The console command would look like this:
rails _3.1.0_ new treebook
3.2 should also work fine. The Gemfile in that new project should then look like this:
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '3.1.0'
And you would no longer experience compatibility problems when following Treehouse videos.