Listing messages

<% for message in @messages %> <% end %>
Name Comment
<%=h message.name %> <%=h message.comment %> <%= link_to 'Show', message %> <%= link_to 'Edit', edit_message_path(message) %> <%= link_to 'Destroy', message, :confirm => 'Are you sure?', :method => :delete %>

<%= link_to 'New message', new_message_path %>