Use form_remote_tag instead. form_tag fires a regular POST requests, and
the
browser is correctly displaying the results. If you want an AJAX call
(as
you do), use form_remote_tag instead of start_form_tag.
Make sure you check the API docs (api.rubyonrails.org) because the
parameters for form_remote_tag are slightly different than form_tag.
I’ve changed start_form_tag to form_remote_tag, and it works straight
away!!!
Matt W. wrote:
Jacquie,
Use form_remote_tag instead. form_tag fires a regular POST requests, and
the
browser is correctly displaying the results. If you want an AJAX call
(as
you do), use form_remote_tag instead of start_form_tag.
Make sure you check the API docs (api.rubyonrails.org) because the
parameters for form_remote_tag are slightly different than form_tag.