I have a fairly common index view but I would like to format the first item differently than others. How do I differentiate the first item from the rest to acheive something like using <h1> tags for the first link instead of <h5>?
<% @links.each do |link| %>
<% if link.points == 0 then @points = "?" else @points = link.points%>
<% end %>
<p>
<h5>
<%= link_to '+', up_link_url(link), :method => :put, :class => "label success" %>
<%= @points %>
<%= link_to '-', down_link_url(link), :method => :put, :class => "label important" %>
<%= link_to strip_tags(link.title), link %>
</h5>
</p>
<% end %>
How about?