search for: taggabl

Displaying 20 results from an estimated 82 matches for "taggabl".

Did you mean: taggable
2007 Apr 23
3
Troubles with using gems in Rails
...;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:in...
2008 Jan 20
2
Which taggable library do people use?
I''d like to add taggability to a model in the site I''m working on, and I wanted to get an idea of what people are using. I keep seeing that acts_as_taggable is deprecated, so I tried the acts_as_taggable_on_steroids. I also tried be_taggable. In any case, I figured I''d see what people use. thanks. -corey -- http://www.coreyhaines.com The Internet''s Premiere source of information about Corey Haines --~--~---------~--~----~-------...
2011 Mar 15
1
Acts as taggable on ( tag ownership question )
From the acts as taggable doc I seeTag Ownership Tags can have owners: class User < ActiveRecord::Base acts_as_tagger end class Photo < ActiveRecord::Base acts_as_taggable_on :locations end @some_user.tag(@some_photo, :with => "paris, normandy", :on => :locations)...
2005 Dec 28
3
acts_as_taggable query
...join table and now want to use this plugin but I just cant seem to figure out how to make it use my table instead of the default. class Tag < ActiveRecord::Base # already exists and has the required fields like name, id & an items (counter) end class Item < ActiveRecord::Base acts_as_taggable :join_class_name ''Itemtag'' # should I use join_table here? end class Itemtag <ActiveRecord::Base set_table_name ''itemtags'' # note that this is different from the default conention of tags_items end With the above settings I thought that the plugin would u...
2006 Apr 01
3
acts_as_taggable, wrong number of arguments
...a'' 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 /usr/local/lib/ruby/gems/1.8/gems/acts_as_taggable-1.0.4/lib/taggable.rb:244:in `add_limit!'' /usr/local/lib/ruby/gems/1.8/gems/acts_as_taggable-1.0.4/lib/taggable.rb:244:in `find_tagged_with'' #{RAILS_ROOT}/app/controllers/volume_controller.rb:6:in `index'' Is there something I''m doing wrong? Thanks in a...
2008 Jun 13
1
Polymorphic :through associations
Could someone please help me with this association scheme? I am familiar with habtm as well as the :through association but this one has me stumped. Here is an example DB. Tags Table: ------------------------- id name Taggables Table: -------------------------- id tag_id taggble_type taggable_id For purposes of this example say that there are 2 other tables that can be tagged and their model name would appear in the taggable_type field along with their id in the taggable id. I have seen this done somewhat with the: b...
2006 Apr 26
0
acts as taggable gem vs plugin
I''m currently using the acts_as_taggable gem; are there any advantages to switching to the plugin? martin
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 root_url else render :action => ''new''...
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 ApplicationHelper include TagsHelper en...
2004 Sep 10
1
Query on image link file mode?
...C+CUE? This will allow the playing of single songs from 1 large FLAC file. Since FLAC can already embed the cuesheet inside the FLAC itself, the next step will be to allow the playback of the songs individually, allowing them to be added to playlists when playing singles. Please make them fully taggable & 'replaygainable (radio gain)' just like Monkey's Audio Image Link File. Below is a sample APL(Monkey's Audio Image Link File) file format. [QUOTE][Monkey's Audio Image Link File] Image File=Tori Amos.ape Start Block=9689211 Finish Block=24233391 ----- APE TAG (DO NOT...
2006 Apr 06
0
How to use polymorphic in a beautiful way in such a case?
class User<ActiveRecord::Base has_many :taggings, :as=>:taggable,:dependent=>true has_many :tags,:through=>:taggings end class Article<ActiveRecord::Base has_many :taggings, :as=>:taggable,:dependent=>true has_many :tags,:through=>:taggings end class Tagging<ActiveRecord::Base belongs_to :tag belongs_to :taggable,:polymorphic=>true end c...
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/.
2013 May 27
3
Ransack, acts-as-taggable-on and checkboxes in search form
need some help on ransack filtering. I have model Project, which has many tags through acts_as_taggable gem. Project.rb: class Project < ActiveRecord::Base include PublicActivity::Common belongs_to :customer belongs_to :category has_many :attachments, :as => :attachable has_many :reports, :dependent => :destroy has_many :messages, :dependent => :...
2006 Jun 22
1
acts_as_taggable gem problems
With acts_as_taggable 1.04... 1. how can I get a frequency of tags? i.e. /tags/list I want to list of tags sorted and listed with their frequency tags_controller.rb: def list @tags = Tags.find_by_sql ''select name, count(*) as freq from tags group by name order by freq desc'' End tags/list.rb...
2008 Jul 12
4
Act as Taggable with Rails 2.0
...following error message: /.../config/environment.rb:62: undefined method `require_gem'' for main:Object (NoMethodError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `gem_original_require'' my environment.rb: 62 has: require_gem ''acts_as_taggable'' which I know isn''t compatible Would anyone have a suggestion on how to solve this? Thanks Elle --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to t...
2006 Mar 29
3
tagtools vs acts_as_taggable
tagtools and acts_as_taggable are both folksonomy tools for rails,any one who has used them both and can give a compare between them? Grateful! -- Posted via http://www.ruby-forum.com/.
2005 Dec 15
2
Rails Tagging Generator?
Hey all! Just finished my first Rails app on 1.0 day and even got paid for it! Great stuff and much thanks to the many generous souls in IRC, especially ezmobious, who helped me through. For my second Rails app, I want to use tagging. I am wondering if there is a Tagging Generator or some other existing implementation I can borrow from? Best, Mike Pence Boca Raton, FL
2009 Sep 11
0
Need help with extending a plugin
hey folks I''ve installed the plugin acts_as_taggable_on_steroids (henceforth aatos), and i already have some tagging functionality set up, using the same approach (ie a Tag and a Tagging class with associated tables) as aatos. So, i want my existing Tag and Taggings methods, plus some other methods i have in a module which i include with the taggab...
2011 Sep 17
0
joining and array with a table in ActiveRecord
Hey I am pretty new to Ruby on Rails and I have no idea how to solve the following: I have a join query on a table like this: def mytags Taggable.joins("JOIN taggables as filter ON taggables.tag_id = filter.tag_id WHERE filter.taggable_type = ''User'' AND filter.taggable_id = 1").all end this works perfectly fine. then I want to join the result on another table, where OtherTable.joins(@mytags) works also fine BU...
2009 Nov 12
0
Problem with has_many :through, :uniq => true with polymorph
Didn''t have quite enough space to describe it there...basically i''m having a problem with the :uniq option in my tags. I''m using acts_as_taggable_on_steroid which adds these associations to my Resource class: Resource has_many :taggings, :as => :taggable, :dependent => :destroy, :include => :tag has_many :tags, :through => :taggings, :uniq => true This uses the join model Tagging: Tagging belongs_to :tag belongs_to...