Tapes are now Clips, also they have categories
This commit is contained in:
parent
86c489be72
commit
c8732b6332
41 changed files with 347 additions and 148 deletions
12
app/views/clips/_form.html.erb
Normal file
12
app/views/clips/_form.html.erb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<%= form_with model: clip do |form| %>
|
||||
<div>
|
||||
<%= form.label :title %>
|
||||
<%= form.text_field :title %>
|
||||
<%= form.file_field :video, :accept => 'video/quicktime,video/mp4' %>
|
||||
<%= form.select :category_id, Category.all.collect{ |t| [ t.name, t.id ] }%>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<%= form.submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue