<% note_id = 1 %> <% for journal in journals %>

<%= link_to "##{note_id}", :anchor => "note-#{note_id}" %>
<%= content_tag('a', '', :name => "note-#{note_id}")%> <%= format_time(journal.created_on) %> - <%= journal.user.name %>

<%= textilizable(journal.notes) unless journal.notes.blank? %> <% note_id += 1 %> <% end %>