Add track/{new,create} with file upload for the track
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
= link_to 'Create playlist', new_playlist_path
|
||||
= link_to 'Add a track', new_track_path
|
||||
%ul
|
||||
- @playlists.each do |p|
|
||||
%li
|
||||
|
6
app/views/tracks/new.html.haml
Normal file
6
app/views/tracks/new.html.haml
Normal file
@@ -0,0 +1,6 @@
|
||||
= form_for @track, :html => { :multipart => true } do |t|
|
||||
= t.label :name
|
||||
= t.text_field :name
|
||||
= t.label :file
|
||||
= t.file_field :file
|
||||
= t.submit 'Upload'
|
Reference in New Issue
Block a user