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

conditions case not working correctly

i use acts-as-taggable-on for tagging. apartments_controller def index if params[:tag] @apartments = Apartment.tagged_with(params[:tag]) else @apartments = Apartment.all end end routes resources :apartments do #... …
0
votes
1 answer

In Rails can i pass additional filter options in tagged_with method for acts-as-taggable-on?

I have an object called Course. I would like to provide tags on courses so that users can search/filter based on those tags. I'm using the gem acts-as-taggable-on: Course.tagged_with(params[:tag]) In this method can I pass additional filtering on…
0
votes
2 answers

Getting tag count with Act_as_taggable_on not working

I've implemented the acts_as_taggable_on gem and I can see on the db the tag table which tags I have. I am tagging the model Card, and when I do Card.tag_counts all I get is [#, #
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
0
votes
1 answer

association or tagging for conception in rails 3

I'm facing a conception problem in developping a website for my videogame. I have a Model named VideoLink which contain a title, a description and a link to a webvideo (for example youtube). I have other models such as User, Map, Mission etc. I want…
0
votes
1 answer

ActsAsTaggableOn after own tag implementation

I had my own implementation of tags in my rails application and wanted to replace it by the ActsAsTaggableOn gem. I generated the migration and deleted all the migrations with tags in it, but forgot to rollback first, so I just did rake db:reset.…
Daniel Schmidt
  • 11,605
  • 5
  • 38
  • 70
0
votes
2 answers

Tagging from Scratch: the Querying Database issue

@saverio was successful on answer this database query question on Tagging from Scratch: the Tag Cloud Issue Now I'm trying to connect the tagging system with the jQuery-tokenInput to Create and Find tags dynamically as on…
0
votes
1 answer

Using acts_as_tagger in User model with Devise

After watching RailsCast #382 on tagging with acts-as-taggable-on I have one question. When using Devise for authentication is there any way to set up tag ownership using current_user? class User < ActiveRecord::Base acts_as_tagger devise…
amarcy
  • 1,485
  • 2
  • 19
  • 28
0
votes
1 answer

show custom content based on tag - acts-as-taggable-on

I just implement acts-as-taggable-on on my blog model. Working great. The visitor can filter blogpost based on the tag. So on my index blog there is a tagcloud with a bunch of tags (links). The url is domain.com/tag/greatbars ect Question: How…
0
votes
1 answer

Some Instance Methods Are Undefined in acts_as_taggable

I am currently getting the following error on my post model which is under act_as_taggable_on for tags and channels. undefined local variable or method `tag_list_on' for # I seems that rails cannot detect…
jab
  • 5,673
  • 9
  • 53
  • 84
0
votes
1 answer

acts_as_taggable_on Tag_counts_on() method

I am currently having some trouble with the Model.tag_counts_on() method in the acts_as_taggable_on plugin in Rails. I can't find real documentation on the method and I want to know more about the parameters it accepts. I am trying to get tag counts…
jab
  • 5,673
  • 9
  • 53
  • 84
0
votes
2 answers

Error in form using acts-as-taggable-on

I'm trying to implement acts-as-taggable-on on one of my rails models but I runt into a problem when trying to create the form. It complains that the method tag_list is undefined. Even though I can use it in the console. My model looks like…
nbon
  • 2,735
  • 2
  • 16
  • 15
0
votes
1 answer

How to get acts on taggable working

I am new to ruby on rails (and programming) and this is probably a really stupid question. I am using Rails 3.2 and trying to use acts_as_taggable_on to generate tags on articles and to have those tags show on article index and show pages as a…
0
votes
3 answers

Select context dynamically

in my models i have contexts like acts_as_taggable_on :sport, :music in the console i can do this @student = Student.first @student.sport_list = ("baseball, soccer") @student.save @student.music_list = ("rock,…
0
votes
1 answer

Ruby On Rails - Acts As Taggable - Change name of param: keyword

I wonder if/how to change the name of the param :keyword when using acts as taggable? Today my url looks like this: http://www.foo.bar/tagged?keyword=baz I would like to change the "keyword" to another word. controller def tagged …
Philip
  • 6,827
  • 13
  • 75
  • 104
0
votes
1 answer

How do I make ActsAsTaggableOn::Tag to be 'acts_as_indexed'?

I have a rails 3 app where I am using acts_as_taggable_on to tag a Post model. I have a search box which allows me to search through the posts, where I use acts_as_indexed. In my search, I want to also be able to search through all the tags, by…
Anand
  • 3,690
  • 4
  • 33
  • 64
1 2 3
34
35