[Rails] acts_as_taggable, wrong number of arguments
Craig White
craigwhite at azapple.com
Sat Apr 1 01:04:04 GMT 2006
On Sat, 2006-04-01 at 02:50 +0200, Jakub Nowak wrote:
> Hello,
>
> When I try:
>
> @tagged_items = Problem.find_tagged_with :all => 'kuba'
>
> or
>
> @tagged_items = Problem.tags_count :limit => 100
>
>
> I get this error:
>
> ArgumentError in Volume#index
>
> wrong number of arguments (2 for 3)
>
> RAILS_ROOT: script/../config/..
> Application Trace | Framework Trace | Full Trace
>
> /usr/local/lib/ruby/gems/1.8/gems/acts_as_taggable-1.0.4/lib/taggable.rb:244:in
> `add_limit!'
> /usr/local/lib/ruby/gems/1.8/gems/acts_as_taggable-1.0.4/lib/taggable.rb:244:in
> `find_tagged_with'
> #{RAILS_ROOT}/app/controllers/volume_controller.rb:6:in `index'
>
> Is there something I'm doing wrong?
----
somewhere in your controller, you've got a method...
tagged_with(1, 2, 3)
tags_count(1, 2, 3)
but you aren't supplying the correct number of variables for it to work
Craig
More information about the Rails
mailing list