Saving 'fake' habtm relationship / app design

I’m hacking up a simple banner system, where i tie banners to specific
categories on my site using a habtm relationship (e.g. form with a
checkbox for each).

Problem is, I’d like some banners on my front/generic pages as well,
without adding a front page category. Suggestions?

Isak

On 10/10/06, Isak H. [email protected] wrote:

I’m hacking up a simple banner system, where i tie banners to specific
categories on my site using a habtm relationship (e.g. form with a
checkbox for each).

Problem is, I’d like some banners on my front/generic pages as well,
without adding a front page category. Suggestions?

Can you really get away from having something like a category for
this, even if you don’t call it a category? You mentioned “some
banners,” implying that some banners won’t be allowed to appear on a
generic page. So, how are you planning to flag these?

– James

On 10/10/06, JDL [email protected] wrote:

Can you really get away from having something like a category for
this, even if you don’t call it a category? You mentioned “some
banners,” implying that some banners won’t be allowed to appear on a
generic page. So, how are you planning to flag these?

I need to use the join table, yes. But preferrably not the category
one, e.g. save null or perhaps a non-existing category id (0?), if I
could figure out how.

Isak