I just started using rails,
I have a model generated with a set of 3 attributes, and I have controllers and views written for it, now I need another database or a model which has 4 attributes, where the second and the third attributes of the new model have to be linked to the 2 attributes in the original database, how do I create or generate this model?
Primary database (Books)
BookID, Bookname , no.of.books
Secondary database (Usage)
Customername, Bookname , noofbooks_rented.
The changes have to reflect on the original database.
Thanks for the help in advance..
In your books model
In your customer model