ご教授よろしくお願いします。
=========================
views
=========================
<%=form_tag({:controller => :products,:action => :search}, :method => :get) do %>
<%= text_field_tag "search_form",params[:search_form],:size =>25 %>
<%= submit_tag '商品検索' %>
<% end %>
========================================
products_controller.rb
========================================
def search
@products =Product.find(:all,
:include => :maker,
:conditions =>['maker.maker_name like :value or code like :value or name like :value', {:value=> '%' +params[:search_form]+ '%'}])
end
========================================
リレーションシップ
========================================
product.rb
belongs_to :maker
****************************
maker.rb
has_many :products
****************************