SuperInPlaceControl

In Rails 2.1, I am using the SuperInPlaceControl plugin to render an
in_place_select on an instance of a model with a has_many
relationship. So far so good, except that when I click on OK to save
the user’s selection, the ajax call is posted, the record is updated,
but the label on the view never gets updated. In fact, it blanks out.

I am using render :text in the controller method, and Firebug reports
the text being returned to the client after the ajax call.

Any idea why the label does not update? I would be happy with simply
looking at some example demo, post, etc.

Thanks,
-H

Bump…

The fact that I get no response tells me that nobody is using
SuperInPlaceControls. What’s out there for in place select editing on
Rails 2.1? Any pointers or comments welcome.
Thanks.

On Fri, Dec 5, 2008 at 12:51 PM, Harold [email protected]
wrote:

The fact that I get no response tells me that nobody is using
SuperInPlaceControls. What’s out there for in place select editing on
Rails 2.1? Any pointers or comments welcome.

I think if you had a reproducible test case, it wouldn’t be that hard
to get some help fixing the problem – it’s just JavaScript :slight_smile:

In Rails 2.1, I am using theSuperInPlaceControlplugin to render an
in_place_select on an instance of a model with a has_many
relationship. So far so good, except that when I click on OK to save
the user’s selection, the ajax call is posted, the record is updated,
but the label on the view never gets updated. In fact, it blanks out.

Sounds to me like it might be getting updated with an empty value…

FWIW,

Hassan S. ------------------------ [email protected]

You are absolutely right, it’s just JavaScript, and digging under the
hood
uncovered my error. I also modified the plugin slightly to accept a :url
parameter in order to specify a controller, action, etc. Just more
flexible.

Thanks,
-H

On Fri, Dec 5, 2008 at 4:42 PM, Hassan S.
<[email protected]