<%= form_for(@snippet) do |f| %> <% if @snippet.errors.any? %>

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

<% end %>
<%= f.label :title %> <%= f.text_field :title %>
<%= f.label :content %> <%= f.text_area :content, :class => 'wysihtml5' %>
<%= f.label :status %> <%= f.select(:status, [['Published', 'published'], ['Draft', 'draft']]) %>
<%= f.submit 'Submit', class: "btn btn-primary" %>
<% end %>