Displaying 20 results from an estimated 9000 matches similar to: "acts_as_taggable"
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 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 (>>
... <<).
2005 Oct 17
0
acts_as_taggable and per-user tags
I''m trying to add per-user tags to a simple app built atop the
tiny_file example code, as follows:
-------------------------------------------------------------------------------------------------
sqlite> .schema
CREATE TABLE resources (
id INTEGER PRIMARY KEY,
filename VARCHAR(255),
user_id integer
);
CREATE TABLE ''tags'' (
''id'' INTEGER
2006 Mar 28
2
add_limit (in acts_as_taggable) breaks in 1.1, solution?
Upgraded from Rails 1.0 to 1.1 and found that the (slightly modified)
acts_as_taggable plugin breaks. The line
add_limit!(sql, options)
(in the tags_count method) causes this error
wrong number of arguments (2 for 3)
The documentation still says it takes two args, so I''m not sure what''s
wrong. Adding
logger.info("SQL here: " + sql)
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 Feb 28
0
acts_as_taggable in Rails 1.1 question
I''ve been using the acts_as_taggable gem in 1.0 to develop some tagging
functionality. The issue is that I need to specify tags by user (i.e.
update additional attributes in the join table). So, in my join table I
have a "user_id" field. I''ve read about the "push_attribute" method in
the api, but that doesn''t seem to work with the gem (and
2005 Dec 24
0
acts_as_taggable - adding users and normalizing tags
Hey all,
I''m wondering how people are using acts_as_taggable. Two things I''d
like to do that aren''t supported out of the box are tag normalization
and user attribution. I can''t imagine I''m the first to think about
doing this.
>From a schema perspective these things both seem simple, just put the
normalized tag in the tags table, and have a join
2006 Aug 10
2
search acts_as_taggable for multiple tags
Hey...I''m trying to search a Model that uses acts_as_taggable for multiple tags. I''d like to pass in a search string containing a space delimited tags names (i.e. "tag1 tag2") and return the objects that have been tagged by either one of those. Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
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
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 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
2006 May 30
3
expected, got Fixnum problem.
Hi,
I was wondering if anybody knew what ''<some type> expected, got Fixnum''
means? My code looks like the following:
begin
anevent = Event.new
anevent.title = params["event"]["title"]
anevent = session[:user_id]
com = Community.find(params[:id])
com.events << anevent
rescue Exception => exc
...
end
But I get an
2006 Apr 03
2
It seems that acts_as_taggable can not be used under 1.1?
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 acts_as_taggable,it seems that the plugin can not work at all
under the rails 1.1 enviroment.According to
http://wiki.rubyonrails.org/rails/pages/ActsAsTaggablePluginHowto
the plugin should work under edge rails,but when the document
2006 Aug 29
1
acts_as_taggable question
Hi folks,
I was using the acts_as_taggable gem in my application. However recently I accidentally ran
gem install acts_as_taggable and now my application is giving errors complaining about missing tables resources_tags
Before running the gem install command, I had tables named as tags_resources. Why am I now getting these errors? Has there been a change in acts_as_taggable gem? Why would it
2006 Jan 30
1
acts_as_taggable => error: undefined method ''tag''
I get an "undefined method ''tag''" when I try to use the
acts_as_taggable.
Note that it''s not the issue of bouncing webrick after changing the
environment.rb file. (I stumbled on that too... :-( ).
I read all the doc I could find (on this site, on
http://rails.techno-weenie.net and at http://taggable.rubyforge.org/)
but I couldn''t find anything I
2006 Feb 28
0
acts_as_taggable and mechanize
Hi,
I''m trying to use both acts_as_taggable and mechanize (WWW::Mechanize) gems
in my app. The problem is that when I do
require ''mechanize''
in the app, acts_as_taggable throws the following error.
undefined method `table_name'' for Struct::Tag:Class
coming from .../gems/acts_as_taggable-1.0.4/lib/taggable.rb:150
However it works fine if I don''t
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