tracks/app/views/notes/_notes_summary.rhtml
Reinier Balt 484356fe07 small improvements
render :partial => filename, :object => @object can be written shorter since rails 2.0 like
render :partial => @object or render :partial => @collection
Also form_for is smart bout put and post for update and creation.

it helps watching older railcasts episodes :-)
2011-02-03 18:17:28 +01:00

11 lines
308 B
Text

<% note = notes_summary -%>
<div class="note_wrapper" id="<%= dom_id(note) %>">
<%= link_to(
image_tag("blank.png", :border => 0),
note,
:title => t('notes.show_note_title'),
:class => "link_to_notes icon",
:id => dom_id(note, "link")) %>&nbsp;
<%= rendered_note(note) %>
</div>
<% note = nil -%>