Rails 3: jQuery form not working.
Posted
by
donald
on Stack Overflow
See other posts from Stack Overflow
or by donald
Published on 2011-01-04T00:50:50Z
Indexed on
2011/01/04
0:53 UTC
Read the original article
Hit count: 178
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
© Stack Overflow or respective owner