Bitmaker Labs – Day 29

Today was unlike any other, all we did was theory! Well, not entirely, but we talked a lot about optimal asset pipeline planning. In a rails app, everything is categorized into a folder structure. There’s a folder for the app, for the HTML pages, etc. There’s a set way to organize files, which is one of the ways that helps make Rails a powerful tool for fast prototyping. Following an optimal structure means planning your asset pipeline well.
Important lesson of the day:
//= require_tree . and //=require_directory are important to get right, and in the right order, based on where  your dependencies are.  require_tree asks Rails to search the subfolders and execute JS files in there. require_directory does the same thing, but in the main JS folder.