Forum: Ruby on Rails Elements for a related Model in a Form

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
4f36a7c0855e117170ae752ae35f18c4?d=identicon&s=25 Tomas Markauskas (Guest)
on 2009-02-01 23:55
(Received via mailing list)

I can't figure out how to do this:

I have a Post Model and it :has_and_belongs_to_many :tags. When I edit
a Post, I want to create checkboxes or a select field (with multiple
select choices), so I can add tags to a Post directly from its form.
Is there a way to achieve this nicely or do I have to create something
like just check_box_tags whithin a loop and process those back in the

Ed437e52d8d6720308720e7e678f3e6d?d=identicon&s=25 Patrick Doyle (Guest)
on 2009-02-02 15:07
(Received via mailing list)
On Sun, Feb 1, 2009 at 6:25 AM, Tomas Markauskas <>

> controller?
> Tomas

I wanted to do something very similar and I modeled my application after

4f36a7c0855e117170ae752ae35f18c4?d=identicon&s=25 Tomas Markauskas (Guest)
on 2009-02-02 20:30
(Received via mailing list)
I've already implemented it in a very similar way, but that looks a
bit nicer. Thanks!

This topic is locked and can not be replied to.