[Rails] acts_as_taggable, wrong number of arguments

Francois Beausoleil francois.beausoleil at gmail.com
Sat Apr 1 04:32:17 GMT 2006


Hi !

2006/3/31, Jakub Nowak <jnowak at wmid.amu.edu.pl>:
> Craig White <craigwhite at azapple.com> wrote:
> } 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
>
> #find_tagged_with and #tags_count comes from 'acts_as_taggable' plugin,

No, that is not the problem.  If you look at the stacktrace, you'll
see the bug is in the implementation of taggable.rb.  Line 244 call
add_limit!, which expects 3 arguments, not 2.  I had the same problem.
 Either the plugin needs to change or the implementation of add_limit!
needs to expect a default argument.

See ticket #4456 for details:
http://dev.rubyonrails.org/ticket/4456

Bye !
--
François Beausoleil
http://blog.teksol.info/


More information about the Rails mailing list