Skip to content

Instantly share code, notes, and snippets.

@theonlyrao
Last active April 20, 2016 15:46
Show Gist options
  • Save theonlyrao/76278851a2fd21ba1bbea88d9ffcec06 to your computer and use it in GitHub Desktop.
Save theonlyrao/76278851a2fd21ba1bbea88d9ffcec06 to your computer and use it in GitHub Desktop.
asset pipleline challenge answers

Scavenger Hunt

  1. To concatenate files is to take the contents of several files and to insert them one after another into a different file. When rails concatenates files using sprokets, it create a unique "fingerprint" to indicate the beginning of a new file.

  2. Precompilation is the process of re-coding a file into a high level language for faster processing by a client.

  3. Minification is the process of removing whitespace and comments from an asset.

  4. I dont know. I'm not convinced they are the same file.

  5. Manifests are files that tell sprokets what to compile into its css file for the application. The manifests in catch em all are in app/assets/javascripts/application.js and app/assets/stylesheets/application.css.sass

  6. I'm not sure. The full link_to css does not exist in the app. But the layout does have a rails method fo "stylesheet_link_tag" that seems relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment