# In\_place\_editor\_field in Rails 2.0.2

**URL:** <https://www.ruby-forum.com/t/in-place-editor-field-in-rails-2-0-2/139788>\
**Category:** Rails\
**Created:** [June 7, 2008, 12:34am UTC](https://www.ruby-forum.com/t/in-place-editor-field-in-rails-2-0-2/139788 "2008-06-07T00:34:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Lee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@Jeff\_Lee](https://www.ruby-forum.com/u/Jeff_Lee)\
**Post date:** [June 7, 2008, 12:34am UTC](https://www.ruby-forum.com/t/in-place-editor-field-in-rails-2-0-2/139788/1 "2008-06-07T00:34:46Z")

</div>

I’m attempting to get an in\_place\_editor\_field working in my index  
view. I have the following:

index.html.erb

\<% for profile in @profiles %\>  
\<% div\_for(profile) do %\>  
\<% @profile = profile %\>  
\<%= in\_place\_editor\_field(:profile, :first\_name) %\>  
\<% end %\>  
\<% end %\>

profiles\_controller.rb

def index  
@profiles = Profile.find(:all)

respond\_to do |format|  
format.html  
end  
end

At one point I read something about including the following line in  
the controller:

in\_place\_edit\_for :profile, :first\_name

However, that line doesn’t do much as far as I can tell. When I go to  
my view, I see the text (the first name), but I cannot edit it there.  
I’m a bit confused as to how this is supposed to work. Any help is  
appreciated!
