Clifford Heath
2007-May-07 09:26 UTC
Using HAML, form_remote_tag inside partial from layout duplicates the partial
I have an application.haml that renders partials, and the partials use form_remote_tag. f_r_t returns the *whole partial again*, not just the form fragment. This has to be a bug doesn''t it? I diagnosed it by putting the form_remote_tag into a helper and printing the return value. Clifford Heath. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
s.ross
2007-May-07 16:38 UTC
Re: Using HAML, form_remote_tag inside partial from layout duplicates the partial
If you''re doing: = form_remote_tag ... do then you will get odd results. Do: - form_remote_tag ... do BTW: This is completely consistent with rhtml behavior. User <% %> in rhtml, not <%= %> for the form_tag and form_remote_tag helpers. On May 7, 2007, at 2:26 AM, Clifford Heath wrote:> > I have an application.haml that renders partials, > and the partials use form_remote_tag. f_r_t returns > the *whole partial again*, not just the form fragment. > > This has to be a bug doesn''t it? > > I diagnosed it by putting the form_remote_tag into > a helper and printing the return value. > > Clifford Heath. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---