<%= form_for attached_file, :html => { :class => "form-horizontal attached_file" } do |f| %> <% if attached_file.errors.any? %>

<%= pluralize(attached_file.errors.count, "error") %> prohibited this attached_file from being saved:

<% end %>
<%= f.label :id, :class => 'control-label col-lg-2' %>
<%= f.number_field :id, :class => 'form-control' %>
<%=f.error_span(:id) %>
<%= f.label :issue_comment_id, :class => 'control-label col-lg-2' %>
<%= f.collection_select :issue_comment_id, IssueComment.all, :id, :title, {}, :class=>"form-control" %>
<%=f.error_span(:issue_comment_id) %>
<%= f.label :url, :class => 'control-label col-lg-2' %>
<%= f.text_field :url, :class => 'form-control' %>
<%=f.error_span(:url) %>
<%= f.submit nil, :class => 'btn btn-primary' %> <%= link_to t('.cancel', :default => t("helpers.links.cancel")), attached_files_path, :class => 'btn btn-default' %>
<% end %>