Forum: Ruby on Rails Listing to tables together ...

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
francesc.esplugas (Guest)
on 2005-11-12 12:50
(Received via mailing list)
Hi there,

I'm working on a CMS that will replace my current Movable Type
installation. I've a little problem with the main screen. I don't
know if it's a database schema bad design or it's coding problem.

I've got two tables. One for the "links" and one for the "posts". In
the main screen of the blog I'd like to show the "links" and "posts"
by date. I mean that I should be able to show for example the last 4
posts introduced + 2 links + 1 post + 3 links.

The solution I think is to use only one table for posts and links but
I prefer to make a combination of the posts and links because maybe
one day I'd like to show also pictures, books ...

Which is the best solution to this problem?

Thanks a lot,

This topic is locked and can not be replied to.