Skip to content

ArgumentError: wrong number of arguments (1 for 2) on tagged_with method #20

Description

@hyperrjas

Hi, thank you for your gem.

I try in my console this:

Article.tagged_with('ruby, mongodb')

but I get this error:

ArgumentError: wrong number of arguments (1 for 2)
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p125@rails32/gems/mongoid_taggable_with_context-0.8.1/lib/mongoid/taggable_with_context.rb:143:in `tagged_with'
from (irb):75
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p125@rails32/gems/railties-3.2.3/lib/rails/commands/console.rb:47:in `start'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p125@rails32/gems/railties-3.2.3/lib/rails/commands/console.rb:8:in `start'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p125@rails32/gems/railties-3.2.3/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions