Forum: Ruby on Rails Using HAML, form_remote_tag inside partial from layout dupli

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0b7831a9963c2207377c46468f6e797a?d=identicon&s=25 Clifford Heath (Guest)
on 2007-05-07 11:55
(Received via mailing list)
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.
Ef0db53920b243d6758c2f6b1306df0d?d=identicon&s=25 Steve Ross (cwd)
on 2007-05-07 18:39
(Received via mailing list)
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.
This topic is locked and can not be replied to.