Questions tagged [acts-as-taggable-on]

ActsAsTaggableOn is a Ruby on Rails gem for handling generic tagging.

ActsAsTaggableOn is a Ruby gem for Rails that handles associating records with arbitrary tags. It handles complex tag relationships, searching and allows you to categorize your tags (for example, as skills, movies, or whatever you want).

520 questions
6
votes
2 answers

How to apply tags with acts_as_taggable_on using check boxes?

I would like to assign two different "types" of tags (sector categories and free tagging) to a Company model using acts_as_taggable_on. NB: I'm new to RoR! This is easy to do if just using standard text input fields, but I would like to use…
6
votes
2 answers

Rails 3 - routing error when using acts_as_taggable_on v.2.0.3

I'm using acts_as_taggable_on v.2.0.3 in Rails 3 to add tags to posts. I add a tag cloud as described here: https://github.com/mbleigh/acts-as-taggable-on, but I'm encountered an error: ActionController::RoutingError in Posts#index: No route matches…
sergodeeva
  • 674
  • 1
  • 9
  • 15
6
votes
2 answers

How to cache tags with acts_as_taggable_on?

I have model with tag context: class Product < ActiveRecord::Base acts_as_taggable_on :categories end I'm trying to initialize tags caching: class AddCachedCategoryListToProducts < ActiveRecord::Migration def self.up add_column :products, …
Voldy
  • 12,829
  • 8
  • 51
  • 67
6
votes
2 answers

Ruby on Rails: Acts as taggable on gem, working with context in model

I was wondering if someone can help me understand this part in the documentation: With the defined context in model, you have multiple new methods at disposal to manage and view the tags in the context. For example, with :skill context these…
hellomello
  • 8,219
  • 39
  • 151
  • 297
6
votes
1 answer

rails_admin to recognize models with acts_as_taggable_on tag_lists

I'm setting up a rails application with rails_admin and acts_as_taggable_on gems. Earlier in the project when attempting to make sure that this could be done I found this issue on the rails_admin github page which led to this gem which is still in…
Roseaboveit
  • 174
  • 10
6
votes
2 answers

Adding a new column to acts_as_taggable_on tag

Basically I would like to add the ability to vote on tags, so I would like to have a priority column for each different model's tag. Any ideas about how to do this? I suspect I need to make a new migration, but I don't know what to make it for. What…
bahudso
  • 159
  • 1
  • 11
6
votes
1 answer

How to integrate acts-as-taggable-on to RailsAdmin?

Is someone integrate acts-as-taggable-on to RailsAdmin? I'm trying rails_admin_tag_list but it's not working for me. My environments: **Gems included by the bundle: * actionmailer (3.2.13) * actionpack (3.2.13) * activemodel (3.2.13) *…
Zeck
  • 6,433
  • 21
  • 71
  • 111
6
votes
2 answers

Rails: Act_as_taggable_on vs. Rocket_tag

Looks like Act_as_taggable_on is the more established gem, but Rocket_tag is the newer and hotter one. Which one would you recommend, and why? Most of the posts I found that compared Rails tagging were fairly outdated, and I was wondering if anyone…
5
votes
2 answers

Showing only the most popular tags in the acts_as_taggable_on tag cloud

Acts-as-taggable works great and everything but I was wondering if there was a way to restrict the tag cloud to only the most popular tags? Right not it looks like its ordering my cloud by the order in which the tags were created. But it makes more…
rugbert
  • 11,603
  • 9
  • 39
  • 68
5
votes
1 answer

acts-as-taggable-on tagged_with or_where?

I'm trying to query an OR WHERE into an acts-as-taggable-on query, like so... Business.tagged_with(params[:query], :any => true) But I'd also like to perform at the same time an or_where like this... Business.tagged_with(params[:query], :any =>…
Andrew Lank
  • 1,607
  • 1
  • 15
  • 29
5
votes
2 answers

Combining meta_search with acts_as_taggable_on

I've run into a small problem with some search-functionality for a Rails 3 website I'm developing. I have a simple Post model that looks like this: class Post < ActiveRecord::Base acts_as_taggable end I'm using acts_as_taggable_on to make adding…
RobinBrouwer
  • 973
  • 6
  • 13
5
votes
2 answers

Searching with acts_as_taggable_on

I'm trying to search through a model for all records with a certain tag. Sample output we are trying to search: ruby-1.9.2-p0 :1 > Question.last.tags => [#, #
sscirrus
  • 55,407
  • 41
  • 135
  • 228
5
votes
1 answer

acts-as-taggable-on use kind of scope (tagger?) and context

My Application uses acts-as-taggable-on to tag Content. The content belongs_to a Company. Now all created tags should belong to the used company and not be visible to other companies. How can i solve this with acts-as-taggable-on? As context i…
Oliver
  • 801
  • 13
  • 26
5
votes
2 answers

Changing the default delimiter with acts-as-taggable-on

The default delimiter in the acts-as-taggable-on gem is a comma. I'd like to change this to a space throughout my Rails 3 application. For example, tag_list should be assigned like this: object.tag_list = "tagone tagtwo tagthree" rather than like…
Chris Alley
  • 3,015
  • 2
  • 21
  • 31
5
votes
1 answer

Acts-as-taggable-on - Trouble putting all of the pieces together

I'm having a heck of a time getting acts-as-taggable-on working. I am new to Ruby/RoR, and I feel that sometimes these plugins (although great) lack the very basic implementation instructions for people who aren't used to working in Rails. I have a…
jyoseph
  • 5,435
  • 9
  • 45
  • 64
1 2
3
34 35