Stock Prices

<% n = 0 for item in @stocks n += 1 %> <% style_attr = item.change < 0.0 ? ' style="color:red"' : '' %> ><%= item.change %> ><%= item.ratio %> <% end %>
#symbolnamepricechangeratio
<%= n %> <%= link_to item.symbol, :action=>'show', :id=>item.id %> <%=h item.name %> <%= item.price %> <%= link_to 'show', :action=>'show', :id=>item.id %> <%= link_to 'edit', :action=>'edit', :id=>item.id %> <%= link_to 'delete', { :action=>'destroy', :id=>item.id }, :confirm=>'Are you sure?', :method=>:post %>

<%= link_to 'New stock', :action=>'new' %>