similar to: acts_as_taggable plugin, duplicate entry

Displaying 20 results from an estimated 100000 matches similar to: "acts_as_taggable plugin, duplicate entry"

2006 Jun 16
4
duplicate entry issue in acts_as_taggable gem
Hi, I am using the ''acts_as_taggable'' gem and have issues when I try to ''tag'' an entity with a ''tagname'' already defined. i.e 1) book[1].tag(''science'',''paperback'') --> works fine 2) book[2].tag(''roman'',''physics'',''paperback'') --> creates an
2006 Dec 26
0
acts_as_taggable Plugin issue (not gem)
I tried to post this earlier, but it never came through. I''ve got something working in console, but not in controller. Any idea why? This is the plugin not the gem of acts_as_taggable *View* <code> <h1>Listing elements</h1> <% if @elements.blank? %> <p>There are currently no elements in the system tagged <%=
2006 Jun 30
0
find_by_sql not quoting properly (in acts_as_taggable plugin)
I have run into a very strange problem discovered through the use of the acts_as_taggable plugin, but related to quoting/sanitizing the interpolated list in a find_by_sql. Apologies for the length, but I wanted to be complete. ;-) The method from acts_as_taggable.rb is: def find_tagged_with(list) find_by_sql(["SELECT #{table_name}.* FROM #{table_name}, tags,
2006 Jun 22
1
acts_as_taggable gem problems
With acts_as_taggable 1.04... 1. how can I get a frequency of tags? i.e. /tags/list I want to list of tags sorted and listed with their frequency tags_controller.rb: def list @tags = Tags.find_by_sql ''select name, count(*) as freq from tags group by name order by freq desc'' End tags/list.rb: <ul> <% @tags.each do |t| %> <li><%= t.freq %>
2006 May 19
1
acts_as_taggable pagination
Im using the acts_as_taggable plugin, is there a way to paginate the find_tagged_with results? -- Posted via http://www.ruby-forum.com/.
2006 Feb 16
1
[PATCH] acts_as_taggable plugin
hi, I started today to use the acts as taggable plugin and it''s working as expected. I added a method find_tagged_with_all since I needed to find the elements tagged with all the items in a list while find_tagged_with finds all the elements tagged with any of the list terms. Attached to this mail there''s a patch which adds the find_tagged_with_all method and which solves a
2006 Nov 21
0
Observer + acts_as_taggable plugin = dead app
so i have found that if i try to place an observer on a model that is using the acts_as_taggable plugin, my app will not start up. this is what i get in the mongrel startup log /Applications/Locomotive2/Bundles/rmagickRailsSept2006_ppc.locobundle/framework/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1129:in `method_missing'': undefined local variable or method
2006 Apr 28
1
acts_as_taggable help
Ahoy, having a bit of difficulty w/ the acts as taggable GEM. I was able to create a tagcloud, but now i want to filter items by tags. in my controller i have def show_tagged_with <-- snip snip --> @items = Item.find_tagged_with( :any => params[:tag_name]) @categories = Category.find_all @tag_name = params[:tag_name] @tagged_items = Item.tags_count(:limit
2006 Jul 21
1
help appreciated on acts_as_taggable issue
Hi, I have added acts_as_taggable to one of my models called Picture, I then try to pick up some tags through the following code: user = User.find(session[:user_id]) photo = Picture.new (@params["picture"]) >> photo.tag(@params["picture_tags"]) << user.pictures << photo I''m trying to use the acts_as_taggable plugin, but I''m finding that
2006 Apr 01
3
acts_as_taggable, wrong number of arguments
Hello, When I try: @tagged_items = Problem.find_tagged_with :all => ''kuba'' or @tagged_items = Problem.tags_count :limit => 100 I get this error: ArgumentError in Volume#index wrong number of arguments (2 for 3) RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace
2006 Jul 20
0
acts_as_taggable
Hi, I have added acts_as_taggable to one of my models called Picture, I then try to pick up some tags through the following code: user = User.find(session[:user_id]) photo = Picture.new(@params["picture"]) >> photo.tag(@params["picture_tags"]) << user.pictures << photo I''m trying to use the acts_as_taggable plugin, but I''m finding that my
2006 Mar 28
1
acts_as_taggable plugin to tag multiple fields in a model
Hello, Is it possible to tag multiple fields in a model using either acts_as_taggable plugin or gem? If it is not possible out of the box, can anyone provide pointers on how I would achieve something like that? Say I have a ''Food'' model which has ''spices'' and ''healthiness'' attributes. I want to be able to tag on both those fields. Is that
2006 Jul 18
0
acts_as_taggable problem with saving tags.
Hi, I have the following code: user = User.find(session[:user_id]) photo = Picture.new(@params["picture"]) >> photo.tag(@params["picture_tags"]) << user.pictures << photo I''m trying to use the acts_as_taggable plugin, I''m finding that my tags table is not getting the tags saved for the above line in question (>> ... <<).
2006 Feb 07
1
acts_as_taggable plugin: more delimiters?
I''m going through the Recipes book and got to the Tagging chapter, wanted to give it a shot. According to the text, tag_with takes a space-delimited list of tags. Is there a way to use different delimeters, such as commas or single quotes? Some tags can potentially have more than one word, such as ''ice cream''. I''d like to be able to use those without doing
2006 Jan 22
2
acts_as_taggable: weird SQL problem with untagging
Setup as follows: class Resource < ActiveRecord::Base belongs_to :user validates_presence_of :filename validates_uniqueness_of :filename, :scope => "user_id", :message => "already exists, try uploading another file or deleting first." acts_as_taggable :join_class_name => ''TagResource''
2006 Apr 07
1
Acts_as_Taggable
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.
2007 Jul 22
2
Seek brilliant Rails programmer to add one field to acts_as_taggable
I''m on the downhill side of a large project that requires an additional integer field to be added to the tag.rb in acts_as_taggable. I feel I have a good understanding of ActiveRecord and have performed the correct migrations. (As a short background for those following this thread) when one wants to add tags to a model they call the ''tag_with'' method that jumps into
2007 Feb 08
1
Problem with acts_as_taggable table migration
I just installed acts_as_taggable in my Rails app, and built the migration for the needed tables. When I went to run the migration via the rake command I got this: /Users/brianlandau/rails/lispr/config/../vendor/plugins/ acts_as_taggable/lib/acts_as_taggable.rb:1: syntax error, unexpected $end "WHERE #{table_name}.#{primary_key} = taggintags, taggings " +e_record_descendant,
2006 Nov 11
0
acts_as_taggable plugin - paging through tagged model
Hi, I''m using the acts_as_taggable plugin & wanted to page through all a model''s records taggged with a particular tags. i.e. page through all Model records that have been tagged with "artist" I could not work out how to do this with the plugin, so I made the changes outlined below. Did I need to do this..? & does anyone else find this useful?
2006 Apr 03
5
Newbie question about acts_as_taggable
I installed the acts_as_taggable plugin that DHH wrote. Now I have met problems on using it: class Book < ActiveRecord::Base acts_as_taggable end mybook = Book.new mybook.tag_with(''red library book'') But the system tell the wrong message: undefined method `parse'' for Tag:Class d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1123:in