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

Style tag_list class from Acts as Taggable On

I'm undoubtedly missing something obvious, but how should I style the output of individual tags produced by <%= user.tag_list %>? <%= user.tag_list, :class => 'tags' %> doesn't work... Note, I want to style the individual results, not the whole…
Nick
  • 839
  • 1
  • 10
  • 19
0
votes
1 answer

Creating URL slugs for tags with acts-as-taggable-on using friendly_id

I'm trying to follow the answer on this question in order to create url friendly slugs for tags: Creating url slugs for tags with acts_as_taggable_on In initalizers I have: ActsAsTaggableOn::Tag.class_eval do extend FriendlyId friendly_id :name,…
0
votes
2 answers

How do I create 'remove tag' links with Acts_As_Taggable_On in Rails?

I'm creating a simple project tagging application using the Act_As_Taggable_On gem. Adding projects, and adding tags (in my case 'types' / 'type_list') to each project works great. Where I'm stuck is how to remove individual tags using…
-1
votes
1 answer

Pass params on index_path route

I'm having a helper for displaying the tags of a post # Show action %p Tags #{ link_tags @post } # Helper def link_tags post raw post.tag_list.map{ |t| link_to t, posts_path(tag: t.name) }.join(', ') end However I'm getting an error on…
ltdev
  • 4,037
  • 20
  • 69
  • 129
-1
votes
1 answer

Display tag links using acts_as_taggable_on

I have a question about acts_as_taggable_on. I'm making a BBS and want to display link tags. However, my website can display only strings not links. So I want to put link to strings. I want to link_to each tags#show. Now some tags are saved in Tag…
tokyo.a
  • 11
  • 2
-1
votes
1 answer

How to allow current user to delete owned tags with acts-as-taggable-on

In my rails app I have an item page that lists tags for an item. Users are able to add tags to items. I want the current user to be able to remove tags, but only for tags that were added to that specific item by the current user. I want to do…
user4584963
  • 2,403
  • 7
  • 30
  • 62
-1
votes
1 answer

International (Icelandic) characters causing errors in Rails

I'm running Rails 4 and using the gem 'acts-as-taggable' to keep track of tags on posts. All extremely simple and works as advertised locally on my machine. However on my VPS (Digital Ocean, Ubuntu 12.04) it doesn't. When saving the post it throws…
Eyeslandic
  • 14,553
  • 13
  • 41
  • 54
-1
votes
1 answer

Acts as taggable on Rails

How can I make an index route/action to see all the tags that I've created!, I'm using the gem at https://github.com/mbleigh/acts-as-taggable-on Thanks.
-2
votes
1 answer

My rails controller didn't work

My rails application is used acts-as-taggable-on. I would like to add function which articles can be searched by tags. In my articles_controller.rb def index @articles = params[:tag].present? ? Article.tagged_with(params[:tag]) : Article.all …
-2
votes
1 answer

Ruby on rails select tags from fixed lists(rails)

I have some models, for example, Post, User. Is it possible to use tags only from fixed lists of tags for model Post and model User?
1 2 3
34
35