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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F01c3ff32fee35d911e81c172a005012?d=identicon&s=25 Tom Fakes (Guest)
on 2005-12-23 04:01
(Received via mailing list)
8e44c65ac5b896da534ef2440121c953?d=identicon&s=25 Ezra Zygmuntowicz (Guest)
on 2005-12-23 05: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.

Cheers-

-Ezra

On Dec 22, 2005, at 7:00 PM, Tom Fakes 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
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>

-Ezra Zygmuntowicz
WebMaster
Yakima Herald-Republic Newspaper
ezra@yakima-herald.com
509-577-7732
C5380b957ff8ce5cb14cf2282ffeb720?d=identicon&s=25 i.v.r. (Guest)
on 2005-12-23 18:44
(Received via mailing list)
Ah, yes. That should've been count += 1, heh... Thanks!
C5380b957ff8ce5cb14cf2282ffeb720?d=identicon&s=25 i.v.r. (Guest)
on 2005-12-23 18:44
(Received via mailing list)
Thanks a lot, that seems pretty useful!
This topic is locked and can not be replied to.