misadventure/app/views/clips/_form.html.erb

12 lines
No EOL
324 B
Text

<%= 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 %>