search for: tag_record

Displaying 1 result from an estimated 1 matches for "tag_record".

2005 Dec 28
3
acts_as_taggable query
...icular tag,so that we can avoid an sql query for the count and jut return the value of this field in the record. I want to add some code in the taggable.rb to take care of this. The counter field has the same name as the table name of the taggable object (items) def tag(tags, options = {}) .... tag_record = tag_model.find_by_name(name) || tag_model.new(:name => name) ##here is my code tag_record.table_name +=1 Is this correct? Vivek _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/...