Audio assets in Rails brings No route matches
I'm trying to use an audio file in rails. I created a folder audios under
app\assets\. I would like to use the assets precompile so I don't want to
put the file under folder app\public
Right now I'm getting
ActionController::RoutingError (No route matches [GET]
"/audios/audio_file.wav")
If I change the url from URL/audios/audio_file.wav to
URL/assets/audio_file.wav it works. How can i fix the problem? What is the
right way?
No comments:
Post a Comment