# Asking for help for in\_place\_editor\_field

**URL:** <https://www.ruby-forum.com/t/asking-for-help-for-in-place-editor-field/123571>\
**Category:** Rails\
**Created:** [December 18, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/asking-for-help-for-in-place-editor-field/123571 "2007-12-18T21:37:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Post date:** [December 18, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/asking-for-help-for-in-place-editor-field/123571/1 "2007-12-18T21:37:47Z")

</div>

The in-place editor works for me, but not when I’m iterating over  
objects in an array. I have the following in my view:  
\<% @session\_types.each do |s| %\>

\<%= in\_place\_editor\_field :s, 'name' %\>

\<% end %\>

@session\_types is an array of objects that have the attribute ‘name’.  
However, I’m getting the error message:  
Called id for nil, which would mistakenly be 4 – if you really wanted  
the id of nil, use object\_id

---

<div class="post-metadata">

**Author:** ![eggman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Post date:** [December 18, 2007, 10:04pm UTC](https://www.ruby-forum.com/t/asking-for-help-for-in-place-editor-field/123571/2 "2007-12-18T22:04:10Z")

</div>

Nevermind. I found the answer here:  
[http://www.weeatbricks.com/2007/09/01/in\_place\_editor\_field-method-in-ruby-on-rails/](http://www.weeatbricks.com/2007/09/01/in_place_editor_field-method-in-ruby-on-rails/)

---

<div class="post-metadata">

**Author:** ![eggman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Post date:** [December 19, 2007, 2:01am UTC](https://www.ruby-forum.com/t/asking-for-help-for-in-place-editor-field/123571/3 "2007-12-19T02:01:57Z")

</div>

eggman2001 wrote:

> Nevermind. I found the answer here:  
> [http://www.weeatbricks.com/2007/09/01/in\_place\_editor\_field-method-in-ruby-on-rails/](http://www.weeatbricks.com/2007/09/01/in_place_editor_field-method-in-ruby-on-rails/)

Thanks for posting the link… I beat my head over that for a hour or so  
the other day and gave up (wanting to save my question karma for more  
pressing needs!)
