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
2) http://www.vaporbase.com/postings/Restful_In_Place_Editor
3) SuperInPlaceControls plugin for Rails 2.0
http://os.flvorful.com/super_in_place_controls
Thanks
Regards
Suneeta
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---