I have this list and what I want to do is to have a link that allows the user to add something to this list. So I have a form with the :update option, but I want the update to happen at the end of this div that I have set aside for this list. I don''t remember how to use :update and tell it to add at the end of the list. Or is it done with render? Can anyone help, Thanks, -S -- 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 -~----------~----~----~----~------~----~------~--~---
On 10/11/07, Shandy Nantz <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I have this list and what I want to do is to have a link that allows the > user to add something to this list. So I have a form with the :update > option, but I want the update to happen at the end of this div that I > have set aside for this list. I don''t remember how to use :update and > tell it to add at the end of the list. Or is it done with render? Can > anyone help, Thanks,If you use :update in your link_to_remote or remote_form_for, you need to redraw the entire list. If you want to just add something to the bottom of the list, you leave off :update and do an RJS response (either a .rjs template or render :update do |page| ... end) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 11 Oct 2007, at 20:22, Shandy Nantz wrote:> > I have this list and what I want to do is to have a link that > allows the > user to add something to this list. So I have a form with the :update > option, but I want the update to happen at the end of this div that I > have set aside for this list. I don''t remember how to use :update and > tell it to add at the end of the list. Or is it done with render? Can > anyone help, Thanks, ><% remote_form_for ..., :update => ''list'', :position => ''bottom'' %> Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> > <% remote_form_for ..., :update => ''list'', :position => ''bottom'' %> > > FredThat''s it Fred, thank you, works just like I want. -S -- 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 -~----------~----~----~----~------~----~------~--~---