# In\_place\_editor\_field

**URL:** <https://www.ruby-forum.com/t/in-place-editor-field/140455>\
**Category:** Rails\
**Created:** [June 14, 2008, 8:41am UTC](https://www.ruby-forum.com/t/in-place-editor-field/140455 "2008-06-14T08:41:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![suneeta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Post date:** [June 14, 2008, 8:41am UTC](https://www.ruby-forum.com/t/in-place-editor-field/140455/1 "2008-06-14T08:41:26Z")

</div>

Hi…

I am doing in\_place editing on a text field using  
in\_place\_editor\_field.

In view I wrote:

\<%= in\_place\_editor\_field :ci\_class, :name, {:id =\> @ci\_class.id}, :html  
=\> {:class=\>‘pageDATAFIELD’} %\>

In Controller:

```
 def set_ci_class_name
   ci_class = CiClass.find(params[:id])
   ci_class.name = params[:value]
   ci_class.save
   ci_class.reload
   render_text ci_class.name
 end

```

I got this working successfully.

But when I searched more about in\_place\_editor\_field, I found that it  
is deprecated and it is changed into plugin in Rails 2.0. I’m using  
Rails 1.2.5.  
I want to change in\_place\_editor\_field so that if I move to Rails 2.0,  
it should be compatible there also.

I searched an alternative for this and I found the following. Please  
help me to find a better solution.

1. editable\_content\_tag : The in\_place\_editor for Rails 2.0  
[http://www.bizmeetsdev.com/articles/2008/02/09/editable\_content\_tag#comments](http://www.bizmeetsdev.com/articles/2008/02/09/editable_content_tag#comments)

2. [http://www.vaporbase.com/postings/Restful\_In\_Place\_Editor](http://www.vaporbase.com/postings/Restful_In_Place_Editor)

3. SuperInPlaceControls plugin for Rails 2.0  
[http://os.flvorful.com/super\_in\_place\_controls](http://os.flvorful.com/super_in_place_controls)

Thanks  
Regards  
Suneeta
