Hi, can anyone help me with the following action so that I can search
from not only one but two tables and fields. I would like to search from
name field in author table as well as name field in title table.
def search
@title_pages, @titles = paginate :titles, :per_page => 10,
:conditions => ["name LIKE ?", params[:title][:name] +
''%'' ]
@keyword = params[:title][:name]
render :action => ''list''
end
Please help
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---