Using HAML, form_remote_tag inside partial from layout dupli


#1

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 H…


#2

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.