Displaying 20 results from an estimated 20000 matches similar to: "acts_as_taggable Plugin Docs"
2006 Sep 12
1
acts_as_taggable -- which one?
There appear to be three acts_as_taggable implementations and I''m looking for
a recommendation on which to use.
- Gem
- DHH plugin
- Dema mixin
The Gem implementation appears to be obsolescent, from what I can read on
the lists and Google search.
I like that the DHH plugin uses polymorphic associations because there will
be lots of different taggable items in my application; however,
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
2006 Feb 13
1
acts_as_taggable scoped in another class/table?
I''m hoping someone more familiar with DHH''s acts_as_taggable plugin
can help me out here...
Tags being all the rage, and the subject of a good recipe in the
forthcoming Pragmatic Rails Recipes book, I decided to give them a
try. However, from what I can tell, they''re kind of application-wide
by design. I know the social thing is hot, but I need my tags to be
2006 Apr 20
5
acts_as_taggable patch 3866 needs some testing
DHH''s acts_as_taggable is now much more usable with this patch.
http://dev.rubyonrails.org/ticket/3866
This patch adds scoped finders, documentation, and tests:
# Get tags for all articles in a blog
@blog.articles.tags
# Get tags for articles in a blog published in the last year
@blog.articles.tags :conditions => [''published_at > ?'', 1.year.ago]
# Get related
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 Feb 11
5
acts_as_taggable : plugin vs gem
Googling for acts_as_taggable is a little confusing: gem, plugin?!
What are the differences?
Which one to choose?
Where is the best doc?
Alain
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 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 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 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 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 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 02
1
Sorting records from acts_as_taggable plugin
I am using the acts_as_taggable plugin, which works rather nicely by the
way. My question is this: When using find_tagged_with, how do I sort the
resultant data? It is currently sorting based on the "id" of the record.
For instance, I have posts, with tags. If I want to find all posts
tagged with "RubyOnRails" it displays them, but not in chronological
order, they are
2006 Feb 07
1
acts_as_taggable plugin question
Hi
I am not sure whether this is the appropriate forum to ask a newbie question about acts_as_taggable plugin.
I have installed the plugin on the server and included it in my script as per readme. However, no tags are saved.
Another question is, is it possible for the users to edit the tags they have created. ?
Thanks
2009 Jan 08
1
Which "acts_as_taggable" plugin is the best?
Hi all,
I want to implement tagging for my resources, but I found lots
"acts_as_taggable" available: "acts_as_tabble", "acts_as_taggable_on",
"acts_as_taggable_on_steroid", etc. Some of them are not in active
development, and I do not know which one is more popular. So, any
suggestions? Thanks in advance!
Difei.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 17
0
validations using acts_as_taggable
Can anyone provide me an example of how they are displaying validation
errors when saving a tag using Demetrius''s (not DHH''s) act_as_taggable
plugin?
For example, the tag model has a
:validates_length_of :name, :in => 1..30, :too_long => "Tag name too long -
max 30 characters", :too_short => "Tag must have a name"
If a user inputs a tag longer than
2007 Jan 17
1
include ClassMethods in plugins
Why is that in so many plugins I see people using (including
acts_as_taggable by DHH):
# init.rb
ActiveRecord::Base.send(:include, ActiveRecord::Acts::SomeModule)
# lib/some_module.rb
module ActiveRecord
module Acts
module SomeModule
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def acts_as_something
# code
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
2007 Jan 19
0
Acts_as_taggable (the gem) woes (solved)
Hi,
I had to battle quite a bit to find how to load acts_as_taggable
without using require_gem.
where I previously had
require_gem ''acts_as_taggable''
I tried replacing by the obvious
gem ''acts_as_taggable''
require ''acts_as_taggable''
this failed miserably. The trick is that the acts_as_taggable module
is in a file named taggable in the lib