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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
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 Dec 5, 12:50 am, Harold <harold.gime...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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. > > 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--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Fri, Dec 5, 2008 at 12:51 PM, Harold <harold.gimenez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 :-)>> 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 Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
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 Schroeder <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On Fri, Dec 5, 2008 at 12:51 PM, Harold <harold.gimenez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 :-) > > >> 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 Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---