Ajax, form_tag, accept headers, Rails 3

I am trying to do a search using an ajax call via a form_tag with
remote => true, a text_field_tag and a submit tag. The form_tag is
reaching the controller, but not as an ajax call. I am receiving a 406
Not acceptable error, which I believe is to do with the accept
headers. I think this might have something to do with my problem.
In my layout head I have:-
<%= javascript_include_tag
“prototype.js”,“scriptaculous.js”,“menu.js”,“rails.js” %>
and in the controller I have :-
respond_to do |format|
format.js
I am running my website on my local computer using Webrick Ruby .9.2
and Rails 3
I am stumped. Can anyone help me by pointing me in a direction to help
me solve this problem.

Don Mapp wrote in post #955952:

I am trying to do a search using an ajax call via a form_tag with
remote => true, a text_field_tag and a submit tag. The form_tag is
reaching the controller, but not as an ajax call. I am receiving a 406
Not acceptable error, which I believe is to do with the accept
headers. I think this might have something to do with my problem.
In my layout head I have:-
<%= javascript_include_tag
“prototype.js”,“scriptaculous.js”,“menu.js”,“rails.js” %>
and in the controller I have :-
respond_to do |format|
format.js
I am running my website on my local computer using Webrick Ruby .9.2
and Rails 3
I am stumped. Can anyone help me by pointing me in a direction to help
me solve this problem.

Hi, ever solved the problem? I run into the same issue… =>
http://www.ruby-forum.com/topic/1009120#new