diogenes/coletivo — Issue #1: It's impossible to get recommendations
Author: mlitwiniuk
Created: 2011-10-30 16:12:09+00:00
State: open

Hi,

first of all - THANK YOU very much for this gem and initiative to make easy-to-use recommentadtions engine!

On my test environment (3 users, 7 rankings, all user rated same two items, onw of them rated one more) geting recommendations fails to succeed:

```ruby-1.9.2-p290 :007 > Medium.find_recommendations_for(u, :strategy=>:pearson)
Coletivo::Models::PersonRating Load (5.1ms) SELECT `person_ratings`.* FROM `person_ratings` WHERE `person_ratings`.`rateable_type` = 'Medium'
ArgumentError: wrong number of arguments (1 for 2)
from /Users/maciej/.rvm/gems/ruby-1.9.2-p290@rails31/gems/coletivo-0.0.2/lib/coletivo/models/recommendable.rb:60:in `block in predict_highest_ratings'
from /Users/maciej/.rvm/gems/ruby-1.9.2-p290@rails31/gems/coletivo-0.0.2/lib/coletivo/models/recommendable.rb:64:in `each'
from /Users/maciej/.rvm/gems/ruby-1.9.2-p290@rails31/gems/coletivo-0.0.2/lib/coletivo/models/recommendable.rb:64:in `collect'
from /Users/maciej/.rvm/gems/ruby-1.9.2-p290@rails31/gems/coletivo-0.0.2/lib/coletivo/models/recommendable.rb:64:in `predict_highest_ratings'
from /Users/maciej/.rvm/gems/ruby-1.9.2-p290@rails31/gems/coletivo-0.0.2/lib/coletivo/models/recommendable.rb:13:in `find_recommendations_for'
from (irb):7```

Any ideas what can go wrong?

(Sorry, I don't have time currently, but I could try to fix this bug in next few days).