Changed '<%= search_form_for @search, html: {class: 'search-form'}, remote: true do |f| %>' to <%= search_form_for @search, html: {class: 'search-form'} do |f| %>' on the search_form of the index page