Rails app structure of search portal

I want to create an google-like app with one search box, where you can send
a request to different legacy databases.
And the results of the database requests should be displayed on one site
with jquery databse tables and flot charts .....
But I am having problems to display all the results of the requests (of one
controller) on one site.
How would I do this?
Can someone please outline an example?

You must be more explicit with your question. Which area are you
having trouble with? The view with the search box? Access to the
legacy databases? Performing the search? Displaying the results?

Having told us which bit you are having trouble with then tell us what
you have tried and what the problem is.

I would say, however, that I hope this is not your first venture into
Rails, it does not sound like a simple application suitable for a