Skip to content

Instantly share code, notes, and snippets.

@hartct
Last active December 17, 2015 23:49
Show Gist options
  • Save hartct/5691809 to your computer and use it in GitHub Desktop.
Save hartct/5691809 to your computer and use it in GitHub Desktop.
Sample routes.rb that overrides the asset pipeline to serve assets using a controller fetching the content from S3
YourApp::Application.routes.draw do
# other routes
match '/assets/somename1/:id' => 'assets#somename1'
match '/assets/somename2/:id' => 'assets#somename2'
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment