Forum: Ruby on Rails Controller part of in-place editing

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
H. Wade M. (Guest)
on 2006-01-13 18:49
(Received via mailing list)
I'm doing some incremental improvements on scaffolding, and want to add
in-place editing to an admin section.  I think I may have the view part
working right (at least, the editor pops up as expected) with this in my

<% for link in @links %>
     <td> <div id="<%= 'url' + -%>"><%= link.url
     <%= in_place_editor ('url' +, :url => {:action =>
'edit_inplace'} ) %>
     <td> <div id="<%= 'title_' + -%>"><%= link.title
     <%= in_place_editor ('title_' + %>
     <td> <div id="<%= 'user_' + -%>"><%= link.user
     <%= in_place_editor ('user_' + %>
     <td> <div id="<%= 'date_' + -%>"><%=
     <%= in_place_editor ('date_' + %>
     <td> <div id="<%= 'updated_' + -%>"><%= link.updated
     <%= in_place_editor ('updated_' + %>
     <td><%= link_to 'Destroy', { :action => 'destroy', :id => link },
:confirm => 'Are you sure?' %></td>
<% end %>

However, after reading the docs on the in_place_editor and
in_place_edit_for controller macro, I'm pretty stumped as to what I need
to put into my controller to actually get the editing going.  Should it
the in_place_edit_for?  Should I be using in_place_editor_field instead

Does anyone have a working example I could use, or have any advice to

This topic is locked and can not be replied to.