here come the tags
This commit is contained in:
parent
c8732b6332
commit
29368bfdb9
16 changed files with 155 additions and 2 deletions
|
|
@ -4,6 +4,7 @@
|
|||
<%= 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 ] }%>
|
||||
<%= collection_select(:clip, :tag_ids, Tag.all, :id, :name, {}, { :multiple => true } )%>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
<h1><%= @clip.title %></h1>
|
||||
<% end %>
|
||||
<b>Category:</b> <%= link_to @clip.category.name, @clip.category %><br>
|
||||
<b>Tags:</b> <%= @clip.tags.map(&:name).join(', ') %><br>
|
||||
<% if @clip.video.attached? %>
|
||||
<%= video_tag @clip.video, :controls => true%>
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue