Check out the acts_as_taggable mixin here:
http://rubyforge.org/projects/taggable/ and
http://dema.ruby.com.br/articles/2005/09/03/tagging-on-steroids-with-rails
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 F. wrote:
has_and_belongs_to_many howto?
and for the tags that already exists, just link them to the story.
end
endRails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
-Ezra Z.
WebMaster
Yakima Herald-Republic Newspaper
[email protected]
509-577-7732
Ah, yes. That should’ve been count += 1, heh… Thanks!
Thanks a lot, that seems pretty useful!