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 trialMarwa zada
UX Design Techdegree Student 15,460 PointsWanting to start my project by using the current project files provided by Treehouse, what steps should I take to properly install it
I'm looking to complete the Rails Development track starting from "Building Social Features For Ruby on Rails" with the project files provided by treehouse.
After downloading, extracting, initializing a git repo, migrating my databases and bundling gems file. What additional steps should I take to make sure that I can work off of the downloaded project file?
11 Answers
Marwa zada
UX Design Techdegree Student 15,460 PointsSolved!
- set config.assets.initialize_on_precompile = true in application.rb
- flush the asset pipeline cache by running rake tmp:cache:clear
I had tried to flush the cache earlier to no avail. but once I set the initialize_on_precompile to true and then flushed, everything worked.
Mike Morales
19,833 PointsWhat operating system are you using?
Marwa zada
UX Design Techdegree Student 15,460 PointsHey Mike,
Running OSX Mavericks 10.9.1
Mike Morales
19,833 PointsI think, I saw a link for OSX Mavericks, I'll have to double check, though? I'll see if I can find it.
Marwa zada
UX Design Techdegree Student 15,460 PointsWell, everything is running fine for the most part. I've been working on the track using Rails 4.0 and Ruby 2.0.0p247 but I want to start clean using the user accounts that we use in the project and the rails version as well. So I installed and am currently running Rails 3.2.6.
I can run the project, the only problem I seem to have is that the Bootstrap files aren't running for some odd reason.
Mike Morales
19,833 PointsIs it possible that you may have duplicates of the bootstrap files, and possibly preventing you from running the bootstrap files? Are you linking the bootstrap with the correct file path? You might want to double check just to be sure.
Here is the link anyways, just in case someone else might find it useful. Link: Install Ruby on Rails · Mac OS X Mavericks
Marwa zada
UX Design Techdegree Student 15,460 PointsI'm going to go through the bootstrap installation video in case I missed something. I'll let you know how that goes.
Marwa zada
UX Design Techdegree Student 15,460 PointsStill no luck. Here's a terminal output. If I inspect the page, only application.css and application.js are read. Bootstrap.css and bootstrap.js aren't being read by the page.
Started GET "/" for 127.0.0.1 at 2014-01-13 14:56:47 -0500
Processing by StatusesController#index as HTML
Status Load (0.1ms) SELECT "statuses".* FROM "statuses"
Rendered statuses/index.html.erb within layouts/application (3.6ms)
Compiled application.css (0ms) (pid 8822)
Compiled application.js (0ms) (pid 8822)
Completed 200 OK in 92ms (Views: 68.5ms | ActiveRecord: 1.4ms)
Mike Morales
19,833 PointsAre you using the bootstrap version 2.3.2 or are you using the latest version of bootstrap, could that be an issue? After saving your files did you save them to their right folders so that way it links up to your treebook page? Did you delete your scaffolds.css.scss file? Are you using ruby 1.9.3 and rails 3.2? Other than that, I'm sure what else to think?
Marwa zada
UX Design Techdegree Student 15,460 PointsYep. I'm completely out of ideas as well. This has stumped me.
Bootstrap version 2.0.4 Ruby 1.9.3p484 Rails 3.2.6
I'm using the project files from the section of the learning track that I'm currently on so the gemfile, config, gem lock are all correct.
Marwa zada
UX Design Techdegree Student 15,460 PointsAndrew Chalkley have you had any people experiencing similar issues from downloading the project files provided? Is there a step we're missing beyond downloading the project files, bundling, migrating the database and then running the server?
Andrew Chalkley
Treehouse Guest TeacherYou'll probably want to ask that to Jason Seifer :)
Marwa zada
UX Design Techdegree Student 15,460 PointsGood tip. Jason Seifer any advice?
Marwa zada
UX Design Techdegree Student 15,460 PointsSo I had a mentor at Codementors take a look at the code and we figured out how to make Bootstrap work. There is an issue with the assets pipeline which prevents Bootstrap.css and Bootstrap.js from being read.
The manifest files contain the directives for requiring everything in the relative assets folder and the bootstrap files are all in their respective folders which leads me to believe there is an issue with the assets pipeline.
If I manually place link and include tags in to application.html.erb linking to the bootstrap files, everything displays fine which is where I'm at right now.
I just have to figure out what's happening within the pipeline that is preventing require_tree . from functioning.
Brandon Barrette
20,485 PointsI think in your development environment you want to turn off precompile. Since it's only loading application.css and application.js that means it's expecting to have all your css and js precompiled into that file. Since in a development environment that doesn't necessarily happen, I have it off. It is on in my production environment however.