Displaying 20 results from an estimated 1000 matches similar to: "Newbie question about acts_as_taggable"
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
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 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 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
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 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 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 Jun 22
2
acts_as_taggable smakdown
Okay, so I just realized there seems to be two acts_as_taggable
modules, the gem and the plugin
1. which came first?
2. what''s the difference? (internals, not ones a gem and ones a plugin)
3. which one is better? ;-)
--
Craig Beck
http://www.luckybonza.com
AIM: kreiggers
2006 Apr 10
2
acts_as_taggable with only 1 taggings table
I was reading rails recipes and it shows how to use acts_as_taggable
with only 2 tables, a tags and a taggings table.
But I think that its related to an older acts_as_taggable version
because now it seems that it works with one tags table and one taggings
table for each tagable model, like this:
tags
photos
tags_photos
Which means I need one new table for each model I want to tag.
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 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 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 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 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
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 20
6
HELP: acts_as_taggable problem with :clear => true
I''ve got the basics of acts_as_taggable going, but I now want to use
:clear => true on the tags method, because the tags I''m supplying as
parameters are the complete set of tags for the item, not additions to
existing tags.
Problem is, that gives me a nasty SQL error ...
Unknown column ''id'' in ''where clause'': UPDATE items_tags SET
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 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
2008 Dec 18
2
samba client improperly shows the wrong files in directories
Hi samba List,
I am finding a strange problem between a mount samba directory. Any
clues why this is happening? I have two servers. The samba server is a
Western Digital World Edition II (2) server. The samba client (server)
is running Ubuntu-kernel linux-2.6.24-22-generic
The samba server is exporting the directory: /shares/internal/Music/
The client is mounting the exported directory to