Skip to content

Instantly share code, notes, and snippets.

@sstephenson
Created June 20, 2010 16:12
Show Gist options
  • Save sstephenson/445923 to your computer and use it in GitHub Desktop.
Save sstephenson/445923 to your computer and use it in GitHub Desktop.
# Using Sprockets in Rails 3
MyApp::Application.routes.draw do
match 'application.js', :to => Sprockets::Server.new(YAML.load_file(Rails.root.join("config/sprockets/application.yml")))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment