Forum: Ruby on Rails how do I list the two tables?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Frank (Guest)
on 2005-12-15 00:11
(Received via mailing list)
Hello,

I want a page that list the database contents  of table1
and then list the database contents  of table2

How do I reference both tables in my controller?

I tried @t1 = Table1.find(:all)
 @t2 = Table2.find(:all)

Thanks

Frank
This topic is locked and can not be replied to.