Topic: Map controller to model, and each model to multiple tables
First comment here.....I have around 5 databases, and multiple tables in each.
I am developing an interface, in which I scan through these tables, and match conditions indicating an error.
So I want to set up something like jquery-ui-tabs indicating each database separately. Once the user searches for an order, I initially check through one database, and then through other databases.
I was thinking of having one controller, which points to the correct model. 5 models each representing a database. And one view. Is this a good idea or not?
a) How to specify in each model, which table it has to use?
b) How to tell controller which model to point to?
I have familiar with Ruby, but have only recently started rails. This is what the idea is -: http://imgur.com/M4Vyw8C