Hi guys !
I’m a RoR newbye and need to display the content of more than one table
in a view. Let’s say I have a Invoices table with a relationship to a
Customers table. I’d like to display on a single page every invoice
informations, including the customer name.
How would I achieve this using ActiveRecord ? My Invoice model is only
able to retrieve data from the Invoices table and my Customer model is
only able to retrieve data from me Customers table.
Thanks by advance,