Last active
December 17, 2015 23:49
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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