Listing announcements

<% for announcement in @announcements %> <% end %>
Title Body Created Is active Location
<%=h announcement.title %> <%=h announcement.body %> <%=h standard_datetime(announcement.created_at) %> <%=h announcement.is_active %> <%=h announcement.location.name %> <%= link_to 'Edit', edit_location_announcement_path(announcement.location, announcement) %> <%= link_to 'Delete', location_announcement_path(announcement.location, announcement), :confirm => 'Are you sure?', :method => :delete %>

<%= link_to 'New announcement', new_location_announcement_path %>