A couple of quick acts_as_taggable (the Rails 1.1 plugin version) 1. Can you update tags on an existing record? If I execute the tag_with statement twice it creates two rows in the taggings column, instead of updating the value of the existing tag 2. Can you delete tags? I didn''t see a method for this. If I can delete tags, problem #1 goes away. scott. ---------------------------------------------------------------------------------------------------- What''s an Intel chip doing in a Mac? A whole lor more that it''s ever done in a PC. My Digital Life - http://scottwalter.com/blog Pro:Blog - http://scottwalter.com/problog -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060407/fb1b1759/attachment.html
Scott > 1. Can you update tags on an existing record? > If I execute the tag_with statement twice it creates two rows in the > taggings column, instead of updating the value of the existing tag I use tag_with (see example below) to update objects tags, and I didn''t notice any data duplication. 1/In the view (edit.rhtml) --------------------------------- <%= text_field_tag "tag_list", @entity.tags.collect {|tag| tag.name}.join('' '') }%> 2/ in the controller (def update) --------------------------------- def update ... @entity.tag_with(params[:tag_list]) @entity.save ... Alain