Hello,
After updating our Rails app to ruby 1.9 there are some problems with
searchlogic, here you can find the error :
Error : wrong number of arguments (1 for 0)
Full trace ( passenger ) :
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/named_scope.rb:92:in
`call''
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/named_scope.rb:92:in
`block in named_scope''
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/named_scope.rb:97:in
`call''
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/named_scope.rb:97:in
`block (2 levels) in named_scope''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/named_scopes/association_conditions.rb:47:in
`association_condition_options''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/named_scopes/association_conditions.rb:42:in
`create_association_condition''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/named_scopes/association_conditions.rb:16:in
`method_missing''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/named_scopes/association_ordering.rb:27:in
`method_missing''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/named_scopes/ordering.rb:30:in
`method_missing''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/named_scopes/or_conditions.rb:28:in
`method_missing''
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/base.rb:1959:in
`method_missing''
/usr/local/lib/ruby/gems/1.9.1/gems/will_paginate-2.3.12/lib/will_paginate/finder.rb:170:in
`method_missing_with_paginate''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:151:in
`cast_type''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:88:in
`method_missing''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:67:in
`block in conditions=''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:64:in
`each''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:64:in
`conditions=''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:50:in
`initialize''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:25:in
`new''
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:25:in
`searchlogic''
/home/dries/Projects/cloud/app/controllers/products_controller.rb:62:in
`get_menu_items''
Line 62 in product controller:
product_type_search = ProductType.searchlogic(:products_active => true,
:products_on_sale => true, :products_available_for_gallery => true)
Somebody who knows why this problem occurs? Therefore it was working
great with ruby 1.8
Our version of rails is 2.3.5
Greetz,
Dries
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.