* Add index, edit and update action; * Add _form partial; * Add link to tracks/index in nav; * Refactor specs.
10 lines
218 B
Plaintext
10 lines
218 B
Plaintext
%h1= @track.name
|
|
|
|
- if @track.sound?
|
|
%p
|
|
%audio{src: sound_path(@track.sound), controls: true, autoplay: true}
|
|
Your browser does not support the audio element
|
|
|
|
%p
|
|
= link_to 'Edit', edit_track_path(@track)
|