search for: acts_as_tag

Displaying 4 results from an estimated 4 matches for "acts_as_tag".

2006 May 21
2
acts_as_taggable and single table inheritance
I''ve set up a couple of STI models like such that we get something like this... class A < AR:Base class B < A acts_as_taggable class C < A acst_as_taggable (using the acts_as_taggable plugin) I can tag things just fine this way, the problem I encounter is that the taggings are listed with the base class ("A") and not the appropriate subclass ("B" or "C"). This is problematic be...
2007 Apr 23
3
Troubles with using gems in Rails
...#39;'m observing some problems using gem inside Rails. My understanding is that after following sequence in irb: $ irb irb(main):001:0> require ''rubygems'' => true irb(main):002:0> require ''active_record'' => true irb(main):003:0> gem ''acts_as_taggable'' => true I should have access to acts_as_tagable mixins, like: irb(main):005:0> ActiveRecord::Acts::Taggable NameError: uninitialized constant ActiveRecord::Acts::Taggable from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:263...
2006 Jan 05
0
Problem implementing tagging
...method or use p.tags << to form the list of tags, if (on a newly-created post) I try to assign a tag that already exists in the tags table, the entry won''t save in the join table. If I go back and assign it again (this time the Post is not a new object), it''ll work. I know acts_as_tag had a similar problem (the same problem?), but I can''t find anywhere that talks about it. Here''s my Tag and Post models (the only relevant code I could think of posting): class Post < ActiveRecord::Base validates_presence_of :title, :body has_many :comments has_and_belongs_to_...
2010 Jan 21
2
will_paginate ?
Does anyone have experience with will_paginate? I''m trying to use it with acts_as_ferret. routes.rb ... map.search ''/search'', :controller => ''notes'', :action => ''search'' notes.rb ... acts_as_ferret :fields => [ ''body'' ] notes_controller.rb ... def search if params[ :query ] @query = params[