acts-as-taggable-on Questions

4

Solved

I have set the acts-as-taggable-on gem in my model like this : acts_as_taggable_on :deshanatags It use the context deshanatags. Now I need to get a list of all the tags (not only the ones assig...
Hindemith asked 28/3, 2014 at 10:30

1

In a data importer, I have code which is attempting to add a bunch of ActsAsTaggableOn::Tag objects to a taggable's tag list: existing_item = FeedItem.where(url: item[:url]).first if existing_i...
Antimony asked 10/12, 2017 at 15:16

1

I'm using acts-as-taggable-on to allow my NewsItem and MediaItem models to be tagged. By default, accessing the model's tags using either tag_list for an array of the tag names or directly via an a...
Schweiker asked 13/3, 2015 at 10:41

3

Solved

I have successfully set up acts_as_taggable_on my model. As expected, when I split the tags with commas, it splits the tags correctly. However, when I edit the post the field is auto populated wi...
Earwig asked 28/2, 2015 at 0:28

4

Solved

I'm using the rails gem acts-as-taggable on, and am tagging posts on two contexts: tags and topics. To return a hash of all the topics tags used so far for posts I can use the code: Post.tag_cou...

2

I am trying to learn how to use the Acts as Taggable On gem with Rails 5. I use simple form for forms. I think part of the problem arises out of there not being an association on the models betwee...

2

Solved

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 => [#<ActsAsTaggableOn::Tag id: 2, n...
Flaky asked 16/4, 2011 at 10:3

5

Solved

I would like to create url slugs for tags managed by the acts_as_taggable_on gem. For instance instead of urls like http://myapp.com/tags/5, I would like to have http://myapp.com/tags/my-tag (where...
Cesaro asked 13/2, 2011 at 5:21

1

I`ve got a model with several taxonomies using acts-as-taggable-on class Film < ActiveRecord::Base attr_accessible :mood_list, :genre_list, :tag_list, :country_list acts_as_taggable_on :count...

2

Solved

I'm using RoR 3.0.8 and the gem acts_as_taggable_on. I want to make it so that a post can have any of the following tags (politics, sports, social, science). I want them to choose the tags when the...
Rooney asked 14/7, 2011 at 17:37

3

Solved

I use acts_as_taggable_on in my current Rails project. On one overview page i am displaying an index of objects with their associated tags. I use the following code: class Project < ActiveRecor...
Abeokuta asked 15/10, 2011 at 9:48

2

Solved

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: ActionContr...
Affra asked 13/11, 2010 at 21:14

2

Solved

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...
Dreamadreamer asked 8/8, 2013 at 20:22

1

I have a question model much like stackoverflow. A user can add a question. In the question form there is :Title, :topics, :place, :description Each topic has its own show page which has a feed ...
Pacian asked 15/1, 2014 at 12:53

3

Solved

I would like to have a select2 dropdown of tags, where i could select multiple existing tags and add new ones. I have tried many different ways and i either don't get select2 box working or only o...

2

Solved

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...
Marikomaril asked 18/7, 2015 at 21:54

2

I have some problems with Simple_form and acts-as-taggable-on. I have a object "Pictogram" with some tags like "door" and "emergency" I use this code in my form = f.input :tag_list When I edit...

7

I would like to uniquely use owner tags in my app. My problem is that when I create / update a post via a form I only have f.text_field :tag_list which only updates the tags for the post but has no...
Coachman asked 1/9, 2010 at 14:52

2

I am using acts_as_taggable_on gem with Rails 4.2 and I have a form where you can enter tags, seperated by commas. <div class="form-group"> <%= f.label(:tag_list, "Tags (se...
Apache asked 28/2, 2015 at 20:1

1

Solved

I have a join table create_table "combine_tags", force: true do |t| t.integer "user_id" t.integer "habit_id" t.integer "valuation_id" t.integer "goal_id" t.integer "quantified_id" end whose...

2

Solved

_tags.html.erb #Version 1 (Just lists out habits tags) <% tag_cloud Habit.tag_counts, %w{s m l} do |tag, css_class| %> <%= link_to tag.name, tag_path(tag.name), class: css_class %> &l...
Aplomb asked 27/4, 2015 at 21:27

2

I am trying to get the text_field in my form partial to comma-separate acts_as_taggable_on tags. Right now, when I reload the page, the commas disappear so if a field has two or more tags, they bec...
Plinth asked 25/12, 2014 at 11:19

6

Solved

I'm using the acts_as_taggable_on plugin to provide tagging for my Framework model. I've got the functional tests that Rails generates, as well as the fixtures it uses and I would like to expand th...
Colloquialism asked 1/11, 2010 at 17:5

1

Solved

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...
Feud asked 19/3, 2015 at 2:4

2

Solved

I am trying to create a numerous amount of tags inside of my database, does anyone know how to do this with the gem acts-as-taggable-on? Products table: create_table :products do |t| t.string :n...
Gibraltar asked 20/6, 2011 at 15:29

© 2022 - 2024 — McMap. All rights reserved.