<div class="main posts-new">
  <div class="container">
    <h1 class="form-heading">応用問題に回答する</h1>
    <%= form_tag("/posts/create") do %>
      <div class="form">
        <div class="form-body">
          <% @post.errors.full_messages.each do |message| %>
            <div class="form-error">
              <%= message %>
            </div>
          <% end %>
          
          <textarea name="content"><%= @post.content %></textarea>
          <input type="submit" value="送信">
        </div>
      </div>
    <% end %>
  </div>
</div>