%= form_for @comment, :html => { :class => "form-horizontal comment" } do |f| %>
<% if @comment.errors.any? %>
<%= pluralize(@comment.errors.count, "error") %> prohibited this comment from being saved:
<% @comment.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :article_id, :class => 'control-label' %>
<%= f.text_field :article_id, :class => 'form-control' %>
<%= error_span(@comment[:article_id]) %>
<%= f.label :title, :class => 'control-label' %>
<%= f.text_field :title, :class => 'form-control' %>
<%= error_span(@comment[:title]) %>
<%= f.label :content, :class => 'control-label' %>
<%= f.text_field :content, :class => 'form-control' %>
<%= error_span(@comment[:content]) %>
<%= f.label :rate, :class => 'control-label' %>
<%= f.text_field :rate, :class => 'form-control' %>
<%= error_span(@comment[:rate]) %>
<%= f.label :created_by, :class => 'control-label' %>
<%= f.text_field :created_by, :class => 'form-control' %>
<%= error_span(@comment[:created_by]) %>
<%= f.label :updated_by, :class => 'control-label' %>
<%= f.text_field :updated_by, :class => 'form-control' %>
<%= error_span(@comment[:updated_by]) %>
<%= f.submit nil, :class => 'btn btn-primary' %>
<%= link_to t('.cancel', :default => t("helpers.links.cancel")),
comments_path, :class => 'btn btn-default' %>
<% end %>