Issue with Routes

I want a form on my home page to be handled by a different controller (buy_controller) but I'm having issues. The code works fine when I have the form under the "buy" views

I'm pretty new to Rails. I've tried different ways of doing this but I can't seem to figure it out. The latest error is doesn't let me load the home page.


I finally figured out the problem.

I added a named route map.buy_search '/buy/search_for_product', :controller => "buy", :action => 'search_for_product'

and changed /home/index.rhtml