Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8341157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:23:21+00:00 2026-06-09T05:23:21+00:00

This is some of the information provided by the docs for dynamic tag contexts

  • 0

This is some of the information provided by the docs for dynamic tag contexts in acts_as_taggable_on…

@user = User.new(:name => "Bobby")
@user.set_tag_list_on(:customs, "same, as, tag, list")
@user.tag_list_on(:customs) # => ["same","as","tag","list"]
@user.save
@user.tags_on(:customs) # => [<Tag name='same'>,...]
@user.tag_counts_on(:customs)
User.tagged_with("same", :on => :customs) # => [@user]

My question is how do I get a compliment of the custom tag list that I create. I want :tags – :customs, that is the set of all tags minus the specified tags of customs.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:23:23+00:00Added an answer on June 9, 2026 at 5:23 am

    From their Github page:

    # Find a user that's not tagged with awesome or cool:
    User.tagged_with(["awesome", "cool"], :exclude => true)
    


    Update


    You could try:

    customs_tags = @user.tag_list_on(:customs)
    user_tags = @user.tag_list
    new_tags = user_tags - customs_tags
    
    @user.set_tag_list_on(:customs, new_tags)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm reworking my tests into Cucumber, but I must still use some user-provided information
In this scenario: User enters some information into a textbox User clicks a button
I found some information about this on Scott Hanselmans Blog Does anybody exactly know
I have this small class called City that simply holds some information about a
I've been trying to find some manual information on this, but my search is
I have text file with some text information and i need to split this
I want to have URLs like this: some-company-name-deal-id-6.htm So the rewrite rule should ignore
I wish to automagically discover some information on a provided class to do something
I'm looking to store some information about the the timezone that the user is
I'm new to android and trying to build this application As a user, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.