similar to: Having Trouble Using ActsAsTaggable

Displaying 20 results from an estimated 2000 matches similar to: "Having Trouble Using ActsAsTaggable"

2006 May 19
0
Works in model but not in mixin
Disclaimer: RoR newbie. Using the acts_as_taggable plugin. As an exercise I wanted to switch from the destructive TAG_WITH method to adding tags while preserving the existing ones. On the surface this seemed easy enough and eventually I got it working. However, the following method: def add_tags(list) Tag.transaction do Tag.parse(list).each do |name| if
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
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
2008 Feb 26
1
problem with posting with acts as taggable on steroids
hi all i''m trying to have a post with tags included but i''m getting undefined method `tag_with'' i''ve already added acts_as_taggable to the model and on the controller the code for creating the post is: def create @post = Post.new(params[:post]) @post.tag_with(params[:tag_list]) @post.user = current_user if @post.save redirect_to
2006 Feb 12
7
ROR Recipes Beta: Why use taggings instead of tags_contacts? NoMethodError tag_with?
I have gotten acts_as_taggable to work for a test application as documented on taggable.rubyforge.org I am following Chad''s excellent examples in ROR Recipes Beta book. I have a few questions and hope that Chad or some other expert can help clarify them. 1. Why is the book suggesting to use taggings table instead of tags_contacts, as mentioned on taggable.rubyforge.org?
2006 Apr 20
2
acts_as_taggable magic.... please explain
Hi, There is a line in acts_as_taggable plugin: send(acts_as_taggable_options[:from]).tags.find_or_create_by_name(name).on(self) could someone explain what is: send(xxx) and .on(self) I cannot find it rDoc -- Posted via http://www.ruby-forum.com/.
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.
2006 Aug 07
3
Acts_as_taggable / Rails Recipes bug?
I''m following the acts_as_taggable chapter from the Rails Recipes book. I want my view form to have a text_field that correlates to an attribute in the Model that accepts a string of space delimited tags. The book uses tag-_list, but from what I can tell this attribute can''t be written to. I''ve added this to the plugin code itself - am I missing something, is there a
2006 Sep 27
1
acts_as_taggable with single-table inheritance?
Does anyone have any experience making this work? I installed the plugin and tried the following: class SomeClass < ActiveRecord::Base acts_as_Taggable end class SubClass1 < SomeClass end class SubClass2 < SomeClass end SubClass1.tag_with("tag") and notice that taggable_type = SomeClass when I do SubClass2.find_tagged_with("tag") a SubClass1 object is
2006 Apr 13
0
Model with file uploads
I''m working on a model for a videos table that include the video info (title, description) and a couple of uploads (video file, thumb image) I was going to use the file_column plugin but I dont like the idea of storing the file names in the database when I dont need to, plus I dont think it is very flexible. Here''s what I done. What do you think of this? Any suggestions?
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
2012 Feb 22
1
Collect users who posted items with ActsasTaggable on Tag in rails 3
I am using Rails 3 and Acts as taggable on in my application. I am fetching the articles associated with the tag by Article.tagged_with("tagname") and Blog.tagged_with("tagname") Now i would like to collect all the users from the above i.e.., people who are all posted articles and blogs with this tag Please suggest me.. -- Posted via http://www.ruby-forum.com/. -- You
2006 Feb 17
2
acts_as_versioned and acts_as_taggable on same model?
I am trying to use acts_as_versioned and acts_as_taggable (plugin) on the exact same model. Has anyone successfuly done this? I think what I need to do is make model_versions acts_as_taggable instead of my main model. Anyone have any other suggestions or any suggestions how to do this? Your Friend, John Kopanas http://www.kopanas.com
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
2005 Dec 23
6
Stories with many tags, tags with many stories, has_and_belongs_to_many howto?
Hi, I began experimenting with habtm relationships, and so I created a stories table, a tags table, and a stories_tags table referencing the former 2. When I create a "story", I want to add several tags to it. Then, the model should create those tags and link them to the respective stories, and for the tags that already exists, just link them to the story. I tried something like
2006 Feb 17
1
acts_as_taggable plugin and multi word tags
I decided to play with the plugin acts_as_taggable based on Chad Fowler''s book Rails Recipes. Is it just me or can tags only be one word? If not can you explain to me how to assign multi-word tags using the acts_as_taggable plugin. Thanks :-) John Kopanas http://www.kopanas.com ===================================================================== http://www.soen.info - source
2006 Apr 30
0
populating model attribute from one of many lists
I have a model named Project which contains a name attribute, and I have a second model named Booking which has, among other things, a date and a Project. (has_many :bookings, belongs_to :project). When a user creates a new Booking, they have the option of using an existing Project or creating a new Project. As an added complexity, when choosing from existing Projects, they can either choose from
2008 Dec 11
1
help needed regaring Acts As Taggable On Steroids
Hello, In my rails application, I have a book model. I want to add tags. For that I have installed acts_as_taggable_on_steroids from this link http://agilewebdevelopment.com/plugins/acts_as_taggable_on_steroids and do as the readme file. This is my Model : class Book < ActiveRecord::Base acts_as_taggable end Here is my ApplicationHelper : module
2006 Jan 29
1
Why am I getting "undefined local variable or method `acts_as_taggable''"?
Hello, I recently installed acts_as_taggable using the following command: gem install acts_as_taggable # output follows Attempting local installation of ''acts_as_taggable'' Local gem file not found: acts_as_taggable*.gem Attempting remote installation of ''acts_as_taggable'' Updating Gem source index for: http://gems.rubyforge.org Successfully installed
2006 Apr 03
0
Re: acts_as_taggable can not be used under 1.1
acts_as_taggable is working fine for me on 1.1. i''m getting acts_as_taggable from svn (http://dev.rubyonrails.com/svn/rails/plugins/acts_as_taggable/), installing it into /vendor/plugins/acts_as_taggable > If the acts_as_taggable plugin has been installed via ruby script/plugin > install acts_as_taggable while not acts_astaggable gem installed via gem > install