Hey man,
What's up? I read you email, and a fast way to solve this problem is putting a remote true in your search form, you can easily render a partial, maybe called _products.html.erb on callback view, something as index.js.erb.
So, your action will be the same but will respond to js and html.
You should do some jquery to setup a flash message if any product was found, and another one to re-render your partial.
$(selector).html("<%= j render 'product' %>")
I did not test it, so maybe there are done typo or syntax errors here. I am in the bus, any other doubt, please let me know.
Hope it will help you
Nice day
Enviado via iPhone