%= 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_id %>
<%= f.text_field :author_id %>
<%= f.label :message %>
<%= f.text_area :message %>
<%= f.submit %>
<% end %>