Newbie Ajax Question

Hello all,

My apology in advance if this question has be asked many times
already. I am new to Rails and can’t get the following simple Ajax
work:

<% form_remote_tag :url => { :action => :add, :id => product } do %>
<%= submit_tag “Add” %>
<% end %>

I tried to test it by making “add” method to print something, but no
response. Meanwhile the old button_to method works.

<% button_to “Add”, :action => :add, :id => product %>

Nothing particular in development log. And yes, I put
<%= javascript_include_tag :defaults %> in the layout file.

I am on OS X Leopard with Rails 1.2.6. Any idea?
Thanks.

Sy

could you post what you have in your controller and rjs?

I restarted the rails and it seems to work! Thanks.