Skip to content

Instantly share code, notes, and snippets.

@schneems
Created March 10, 2014 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schneems/9474721 to your computer and use it in GitHub Desktop.
Save schneems/9474721 to your computer and use it in GitHub Desktop.
rails new sprockets_template_require
cd sprockets_template_require/
mkdir app/assets/templates/
echo "FOO" > app/assets/templates/index.html
echo "//= depend_on index.html" > app/assets/javascripts/application.js
RAILS_ENV=production bundle exec rake assets:precompile
echo "bar" >> app/assets/templates/index.html
RAILS_ENV=production bundle exec rake assets:precompile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment