Forum: Ruby on Rails in place editor in an index action

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris H. (Guest)
on 2009-02-18 03:08
(Received via mailing list)
How do you do an in_place_editor_field in a for loop so each item will
have that available like in an index action?  Is it possible?

<% for note in @notes %>
    <td><%=h note.label %></td>
    <td><%=h note.start_time %></td>
    <td><%=h note.end_time %></td>
    <td><%=  in_place_editor_field :note, :log %></td>
    <td><%= link_to 'Show', note %></td>
    <td><%= link_to 'Edit', edit_note_path(note) %></td>
    <td><%= link_to 'Destroy', note, :confirm => 'Are you
sure?', :method => :delete %></td>
<% end %>
This topic is locked and can not be replied to.