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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 10/10/06, Isak Hansen <isak.hansen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 10/10/06, JDL <jamesludlow-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On 10/10/06, Isak Hansen <isak.hansen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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?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> > -- James > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---