%= form_for(@alert) do |f| %>
<% if @alert.errors.any? %>
<%= pluralize(@alert.errors.count, "error") %> prohibited this alert from being saved:
<% @alert.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :author %>
<%= f.text_field :author %>
<%= f.label :message %>
<%= f.text_area :message %>
<%= f.submit %>
<% end %>