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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8133ee52ca72188132b5c7d97dfb967f?d=identicon&s=25 Chris Habgood (chabgood)
on 2009-02-18 02: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 %>
  <tr>
    <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>
  </tr>
<% end %>
This topic is locked and can not be replied to.