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
0
votes
1 answer

undefined method tag_counts_on for Array

I am using the acts_as_taggable_on gem: https://github.com/mbleigh/acts-as-taggable-on and I am trying to show the tags on certain posts but it throws an error: undefined method `tag_counts_on' for # View: <% tag_cloud…
APJ
  • 245
  • 1
  • 3
  • 14
0
votes
1 answer

Rails: Trying to Format output of Acts_As_Taggable tag in View

In my _updates.html.haml file in my home view of my rails app, I am accessing a bunch of posts with the @posts = Post.tagged_with(params[:tag]) in my home controller. I am doing an each iteration on @posts and am trying to prepend a '#' symbol in…
Thalatta
  • 4,510
  • 10
  • 48
  • 79
0
votes
1 answer

Refactoring acts_as_taggable suggestions?

I have an application with a list of majors and each one is tagged with categories using the acts-as-taggable-on gem. I have a page where you can explore majors by category. So, you see the categories and grouped under the category is a list of…
lflores
  • 3,770
  • 3
  • 19
  • 24
0
votes
2 answers

Fuzzy tag matching with acts-as-taggable

So I'm using acts_as_taggable on a model. I'd like to be able to find tags with some sort of a %LIKE% matching, but I'm not sure how. My current code: @companies = Company.tagged_with(@query, :any => true) doing this doesn't…
Frexuz
  • 4,732
  • 2
  • 37
  • 54
0
votes
1 answer

how can I filter page content using multiple tags

I am newbie in rails and I want to filter my page content using muptiple tags. I am using act_as_taggable_on gem and I managed to have a tag-cloud and filter my content according tags. I used the following tutorial …
0
votes
0 answers

Ruby on Rails: NameError with acts-as-taggable-on gem

I am a relatively new web programmer and I'm trying to add this code on top of the /omrails tutorial. I'm able to get the gem acts-as-taggable-on to work until I input this code in pins/index.html.erb: <%= render 'pages/home' %>
harrisongill
  • 113
  • 1
  • 10
0
votes
0 answers

acts-as-taggable-on gem in rails

I know ActsAsTaggableOn.remove_unused_tags = true is for the lasted version. In 2.2 I used ActsAsTaggableOn::Tag.remove_unused = true. How about ActsAsTaggableOn.force_lowercase = true? What is the equivalent for 2.2 version?
Chris Ian
  • 771
  • 1
  • 7
  • 19
0
votes
1 answer

simple_form (rails) displays extra characters (-- "0")

I used simple_form and devise (RoR gems) to make a New User and Edit User form. I added a checkbox feature so that users can select what payment methods they accept. However, after filling up and updating the form, user page generates this dashes,…
0
votes
1 answer

acts-as-taggable-on fails in finding items belonging to tags which contains spaces and non English characters such as åäö

I'm using the following code to retrieve all products tagged with a specific tag. tag = The tag for the products which you would like to find Product.tagged_with(tag, :on => "product_tags").each do |product| # CODE end This works for most tagged…
Leonard Saers
  • 649
  • 9
  • 28
0
votes
1 answer

Manage list of tags for acts-as-taggable-on?

I'm currently using acts-as-taggable-on in a project. I can offer users the choice of only tagging new objects with existing tags by using Model.tag_count. But the client wants to be able to manage the list of available tags from the admin panel. Is…
anotherthink
  • 481
  • 1
  • 5
  • 12
0
votes
1 answer

Show the times of a tag being tagged to a specific object using acts-as-taggable-on in Rails

Sorry for such a long topic, that what I can only express with these words. For example: @article=Article.new and users could tag @article differently, with their own tag( like good) Then, how can I show the good tag how many times being taged to…
ZK Zhao
  • 19,885
  • 47
  • 132
  • 206
0
votes
1 answer

Having issue renaming tags with ActsAsTaggableOn

Here's my method: def rename old_tag = params[:old_tag] new_tag = params[:new_tag] if old_tag != new_tag # find any articles that use the old tag Article.tagged_with(old_tag).each do |article| # give articles with the old tag…
Joseph Le Brech
  • 6,541
  • 11
  • 49
  • 84
0
votes
1 answer

How can I sort by "updated_date desc" with the gem 'acts_as_taggable_on_steroids'?

I'm using This fetches 10 tags of the most pupular tags @tags = Post.tag_counts_on(:tags, :limit => 10, :order => "count desc") This fetches 10 tags of the oldest tags @tags = Post.tag_counts_on(:tags, :limit => 10) How can I fetch 10 tags of…
Foo
  • 800
  • 1
  • 7
  • 17
0
votes
2 answers

Preset Tags acts_as_taggable_on

Does acts_as_taggable_on have any settings to prevent the creation of new tags? I couldn't find anything on the wiki or on SO. I only want admins to be able to create new tags. I realize I could create something to check the list, but I can't…
dewyze
  • 979
  • 1
  • 7
  • 21
0
votes
1 answer

Rake Tagging from CSV task to much for SQLite?

I have a rake task that foreach through a CSV file of IDs. I then query the database to see if that id exists in my database. if it exists i use act_as_taggable to add a tag. the script runs fine until it gets to the first match and attempts to…