Improve tracks CRUD
* Add index, edit and update action; * Add _form partial; * Add link to tracks/index in nav; * Refactor specs.
This commit is contained in:
@@ -1,12 +1 @@
|
||||
= form_for @track, html: { multipart: true } do |t|
|
||||
%table
|
||||
%tbody
|
||||
%tr
|
||||
%th= t.label :name
|
||||
%td= t.text_field :name
|
||||
%tr
|
||||
%th= t.label :file
|
||||
%td= t.file_field :file
|
||||
%tfoot
|
||||
%tr
|
||||
%td= t.submit 'Upload'
|
||||
= render 'form', submit_text: 'Upload'
|
||||
|
||||
Reference in New Issue
Block a user