# In place editor in an index action

**URL:** <https://www.ruby-forum.com/t/in-place-editor-in-an-index-action/160600>\
**Category:** Rails\
**Created:** [February 18, 2009, 2:08am UTC](https://www.ruby-forum.com/t/in-place-editor-in-an-index-action/160600 "2009-02-18T02:08:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [February 18, 2009, 2:08am UTC](https://www.ruby-forum.com/t/in-place-editor-in-an-index-action/160600/1 "2009-02-18T02:08:16Z")

</div>

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 %\>

 \<%=h note.label %\> \<%=h note.start\_time %\> \<%=h note.end\_time %\> \<%= in\_place\_editor\_field :note, :log %\> \<%= link\_to 'Show', note %\> \<%= link\_to 'Edit', edit\_note\_path(note) %\> \<%= link\_to 'Destroy', note, :confirm =\> 'Are you sure?', :method =\> :delete %\> \<% end %\>
