GithubHelp home page GithubHelp logo

datamapper / dm-tags Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 15.0 1.28 MB

This package brings tagging to DataMapper. It is inspired by Acts As Taggable On by Michael Bleigh, github's mbleigh. Props to him for the contextual tagging based on Acts As Taggable on Steroids.

Home Page: http://datamapper.org/

License: MIT License

Ruby 100.00%

dm-tags's People

Contributors

abhay avatar bobby avatar dbussink avatar dkubb avatar gix avatar michaelklishin avatar myabc avatar namelessjon avatar rhyhann avatar shanna avatar snusnu avatar solnic avatar somebee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dm-tags's Issues

options :nullable are unknown

Just updating an application to work with 3.1/1.2.0.rc1

this only comes up when dm-tags is installed

rake db:automigrate --trace  
rake aborted!
options :nullable are unknown
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/dm-core-1.2.0.rc1/lib/dm-core/property.rb:777:in `assert_valid_options'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/dm-core-1.2.0.rc1/lib/dm-core/property.rb:743:in `initialize'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/dm-core-1.2.0.rc1/lib/dm-core/property/numeric.rb:16:in `initialize'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/dm-core-1.2.0.rc1/lib/dm-core/property/integer.rb:15:in `initialize'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/dm-core-1.2.0.rc1/lib/dm-core/model/property.rb:55:in `new'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/dm-core-1.2.0.rc1/lib/dm-core/model/property.rb:55:in `property'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/dm-validations-1.2.0.rc1/lib/dm-validations/auto_validate.rb:11:in `property'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/dm-tags-0.10.0/lib/dm-tags/tagging.rb:5:in `<class:Tagging>'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/dm-tags-0.10.0/lib/dm-tags/tagging.rb:1:in `<top (required)>'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/dm-tags-0.10.0/lib/dm-tags.rb:1:in `require'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/dm-tags-0.10.0/lib/dm-tags.rb:1:in `<top (required)>'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `each'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `block in require'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `each'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `require'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.18/lib/bundler.rb:120:in `require'
/media/essential/projects/1_current/thrisp/modules/+velicessegia/ticketenginealpha/config/application.rb:13:in `<top (required)>'
/home/qx/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/home/qx/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/media/essential/projects/1_current/thrisp/modules/+velicessegia/ticketenginealpha/Rakefile:5:in `<top (required)>'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in `load'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:495:in `raw_load_rakefile'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:78:in `block in load_rakefile'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:77:in `load_rakefile'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:61:in `block in run'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/home/qx/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/bin/rake:32:in `<top (required)>'
/home/qx/.rvm/gems/ruby-1.9.2-p180/bin/rake:19:in `load'
/home/qx/.rvm/gems/ruby-1.9.2-p180/bin/rake:19:in `<main>'

Cannot update tags

When I run through the example code and get to this bit:
model.tag_list = 'test, again'
model.save #=> true
model.tags

I get this:
#=>[#<Tag @id=1 @name="me out">, #<Tag @id=2 @name="please">, #<Tag @id=3 @name="test">]

Basically, the tags just stay the same.
Tag.all gives the same output, so the tags aren't even being added to the Tag model.
However....
model.tag_list #=> ["again", "test"]

Not sure why the new tags aren't being saved.....

readme 'installation' update

still references dm-more. also there's a 'dm-tags' gem so can probably replace with:

gem install dm-tags

Would probably helpful to mention the format of the tabs table it creates too

Thanks!

About the models

In the doc you use Tag.all to get the list of all tags in the database, but how is the Tag class defined ? I think the docs should state it clearly.

No easy way to delete only ONE tag in an association

In the README, the example to remove tags only shows how to delete ALL the tags in the model. Let's say I only want to remove one. How is that done?

If I do model.tags.get(1).destroy, that will destroy the Tag object. That's not what I want. I just want to remove the association. Thanks for the help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.