<%= form_for(@post) do |f| %>
  <% if @post.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:</h2>

      <ul>
      <% @post.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field form-group">
    <%= f.label :title , class: "control-label"%><br>
    <%= f.text_field :title, class: "form-control" %>
  </div>
  <div class="field form-group">
    <%= f.label :content , class: "control-label"%><br>
    <%= f.text_area :content, class: "form-control" %>
  </div>
  <div class="actions">
    <%= f.submit "Submit", class: "btn btn-default btn-primary" %> 
  </div>
<% end %>
<%= form_for(@post) do |f| %>
  <% if @post.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:</h2>

      <ul>
      <% @post.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
  <div class="row">
    <div class="col-sm-8">
      <div class="field form-group">
        <%= f.label :title , class: "control-label"%><br>
        <%= f.text_field :title, class: "form-control" %>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-8">
      <div class="field form-group">
        <%= f.label :content , class: "control-label"%><br>
        <%= f.text_area :content, class: "form-control" %>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-12">
      <div class="actions">
        <%= f.submit "Submit", class: "btn btn-default btn-primary" %>
      </div>
  </div>
<% end %>
Update view partial _form posts
Update view partial _form posts
