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
*************************************
<% form_for :buy, :url => buy_search_path, :html => { :id =>
'search_form' } do |form| %>
  <%= form.text_field :query, :size => 70 -%>
  <%= submit_tag "Search" %>
<% end %>

I really recommend using Railscasts (http://railscasts.com) by Ryan
Bates for anyone else that's new to Rails.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to