How to access records from multiple tables

Hi iam a newbie and i just wanna know to how to access data from
multiple tables in a database in RoR? I have gone through the tutorial
“Rolling on Ruby on Rails” on Onlamp but i get an error when i try to
access data from two tables?

similary, how can i update data in to multiple tables?

Thanks in Advance