Forum: Ruby on Rails RE: Stories with many tags, tags with many stories, has_and_

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.
Tom F. (Guest)
on 2005-12-23 05:01
(Received via mailing list)
Ezra Z. (Guest)
on 2005-12-23 06:22
(Received via mailing list)
Yes check out acts_as_taggable you will like it. But one error I see
in your self.create method may be holding you back./ You initially
set the count to 0 then you try to increment it in the each iterator
by doing count += count. Well this just adds 0 + 0 and never
increases your count.



On Dec 22, 2005, at 7:00 PM, Tom F. wrote:

> has_and_belongs_to_many howto?
> and for the tags that already exists, just link them to the story.
>         end
> end
> Rails mailing list
> removed_email_address@domain.invalid

-Ezra Z.
Yakima Herald-Republic Newspaper
i.v.r. (Guest)
on 2005-12-23 19:44
(Received via mailing list)
Ah, yes. That should've been count += 1, heh... Thanks!
i.v.r. (Guest)
on 2005-12-23 19:44
(Received via mailing list)
Thanks a lot, that seems pretty useful!
This topic is locked and can not be replied to.