search for: itemtag

Displaying 2 results from an estimated 2 matches for "itemtag".

2005 Dec 28
3
acts_as_taggable query
...plugin but I just cant seem to figure out how to make it use my table instead of the default. class Tag < ActiveRecord::Base # already exists and has the required fields like name, id & an items (counter) end class Item < ActiveRecord::Base acts_as_taggable :join_class_name ''Itemtag'' # should I use join_table here? end class Itemtag <ActiveRecord::Base set_table_name ''itemtags'' # note that this is different from the default conention of tags_items end With the above settings I thought that the plugin would use the table I have created but when...
2006 Jan 20
6
HELP: acts_as_taggable problem with :clear => true
...tem_id = NULL WHERE (item_id = 2 AND id IN (NULL,NULL,NULL,NULL,NULL,NULL,NULL)) Any ideas ? My call to tags (in update method in controller) is like this @item.tag(params[:tags], :clear => true ) Acts_as_taggable is invoked like this acts_as_taggable :join_class_name => ''ItemTag'', :join_table => ''items_tags'' i.e. my link table and join_class follow the usual rails conventions, not the usual acts_as_taggable conventions. Thanks in advance for any help, Andy -- Posted via http://www.ruby-forum.com/.