Mike Bethany's Profile

Comments by Mike Bethany

I'm not sure if it's changed since this 'cast came out but I had to do several more steps or the AJAX doesn't work:

Most importantly the jquery-rails install doesn't do all it needs to so you have to add "jquery rails" to your javascript_expansions[:default] yourself. i.e. in your config/application.rb file make sure you have:
config.action_view.javascript_expansions[:defaults] = %w(jquery rails)

Next you need to add ", :remote => true" to the end of the form_tag line in your partial file:
<%= form_tag products_path, :method => 'get', :id => "products_search", :remote => true do %>