<%= page_entries_info(@messages, {:entry_name => "message", :skip_decorations => true, :params => params.merge(:last_page => nil)}) %> <%= will_paginate(@messages, :style => "text-align:right", :skip_decorations => true, :params => params.merge(:last_page => nil)) %>
<% @messages.each do |message| %> <% style = (message == @messages.last ? "" : "border-bottom:1px dotted #ccc;" ) %> <%= render :partial => "message", :locals => {:message => message} %> <% end %>