<%= form_for(document) do |f| %> <%= f.hidden_field :owner_id %>
<%= f.label :file, t('document.info.file') %> <%= f.file_field :file %>
<%= f.label :title, t('document.info.title') %> <%= f.text_field :title %>
<%= f.label :description, t('document.info.description') %> <%= f.text_area :description %>
<%= f.label :tag_list, t('document.info.tags') %> <%= f.text_field :tag_list, 'data-path' => tags_path(format: 'json') %>
<%= f.submit :class => "btn" %> <% end %> <%= javascript_tag do %> $(function() { SocialStream.Document.edit(); }); <% end %>