# Display HABTM-association in view

**URL:** <https://www.ruby-forum.com/t/display-habtm-association-in-view/142689>\
**Category:** Rails\
**Created:** [July 10, 2008, 12:09pm UTC](https://www.ruby-forum.com/t/display-habtm-association-in-view/142689 "2008-07-10T12:09:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sevensoft](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f9ae1b/32.png) [@sevensoft](https://www.ruby-forum.com/u/sevensoft)\
**Post date:** [July 10, 2008, 12:09pm UTC](https://www.ruby-forum.com/t/display-habtm-association-in-view/142689/1 "2008-07-10T12:09:29Z")

</div>

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,

Ken

---

<div class="post-metadata">

**Author:** ![sevensoft](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f9ae1b/32.png) [@sevensoft](https://www.ruby-forum.com/u/sevensoft)\
**Post date:** [July 10, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/display-habtm-association-in-view/142689/2 "2008-07-10T18:38:22Z")

</div>

> **[\#17 HABTM Checkboxes - RailsCasts](http://railscasts.com/episodes/17-habtm-checkboxes)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

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:

[http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/56c55d67a7fea1ee/6c19af5d2c819002?lnk=st&q=HABTM#6c19af5d2c819002](http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/56c55d67a7fea1ee/6c19af5d2c819002?lnk=st&q=HABTM#6c19af5d2c819002)

On Jul 10, 11:09 am, Ken B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
