Rails 3: jQuery form not working.
- by donald
Hi,
I have jquery working on my Rails app using the gem 'jquery-rails'.
I also have a search form working correctly. However, when I add :remote => true the form stops working.
<%= form_tag services_path, :method => :get, :remote => true do %>
<%= text_field_tag :search, params[:search] %>
<%= submit_tag "Search", :name => nil %>
</div>
<% end %>
I have also added a index.js.erb but it has no effect on it. For some reason the :remote = true makes the form to stop working.
Any reason why?
Thanks