Listing alerts

<% if !@alerts.nil? %> <% @alerts.each do |alert| %> <% end %> <% else %> <% end %>
Author Message
<%= alert.author %> <%= alert.message %> <%= link_to 'Show', alert %> <%= link_to 'Edit', edit_alert_path(alert) %> <%= link_to 'Destroy', alert, method: :delete, data: { confirm: 'Are you sure?' } %>

There are no alerts!


<%= link_to 'New Alert', new_alert_path %>