Using HAML, form_remote_tag inside partial from layout dupli

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…

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs