%= form_for(@post) do |f| %>
<% if @post.errors.any? %>
<%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:
<% @post.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :body %>
<%= f.ueditor_text :body, :width => 500, :toolbars => [["bold","italic","underline"]] %>
<%= f.submit %>
<% end %>