Save track files in new Sound model:
* Consolidate migrations * Add Sound model. Each sound can belong to a track and contains informations about one sound file.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
%h1= @track.name
|
||||
%audio{:src => download_track_path(@track), :controls => true, :autoplay => true}
|
||||
Your browser does not support the audio element
|
||||
- if @track.sound?
|
||||
%audio{:src => sound_path(@track.sound), :controls => true, :autoplay => true}
|
||||
Your browser does not support the audio element
|
||||
|
Reference in New Issue
Block a user