Display HABTM-association in view

Hi there,

I’m quite new to Ruby and just finished setting up the relationship in
the site I’m building. Everything works fine, the multiple checkboxes
for association are displayed and updated on checking/unchecking.

The only problem that I have, is that the checked associations aren’t
displayed in the view…

And I have no clue on what code to implement to get this done. I;ve
tried googling a lot, but this didn’t help very much.

Could you give me some advise?

Thanks in advance,


have you tried this?? it also can work for has_many :through with a
bit of effort

also some other guy was asking the same:


On Jul 10, 11:09 am, Ken B. [email protected]