sorry, what I get for not reading the subject title.  above applies
and just add recommendation to use has_many :through rather than habtm
in at least this case due to better support from hobo for
has_many :through relations.

On Aug 26, 5:31 pm, kevinpfromnm <[email protected]> wrote:
> so, each product can be in multiple categories?
>
> use a has_many :through association with :accessible => true on the
> join.  like this in product:
>
>   has_many :product_categories, :accessible => true
>   has_many :categories, :through => :product_categories
>
> then you need to use the check-many tag (I believe but going off
> memory on that) for your view.
>
> On Aug 26, 12:59 pm, Scorpio <[email protected]> wrote:
>
> > I've setup this assoc. between Category and Product so that at the
> > bottom of every product i would have the option to select in what
> > categories (must be one product in many) the product should show and
> > I'm not sure how to do that using pure rails code and checkboxes.
> > Sadly checkboxes in rails are a pain in the ... rear. Any way to rapid
> > it faster ?
>
> > Note that categories are editable so it cant be fixed and has to be DB-
> > driven.
>
> > Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to