5

I'm using using letsrate gem and getting the following error:

ArgumentError - wrong number of arguments (3 for 2):
lib/letsrate/lib/letsrate/model.rb:69:in `letsrate_rateable'
app/models/model_definition.rb:3:in `<class:ModelDefinition>'
app/models/model_definition.rb:1:in `<top (required)>'

I've tried to downgrade version from 1.0.9 to 1.0.8 and then I've copied the source to lib directory still I'm getting the same error.

ekremkaraca
  • 1,453
  • 2
  • 18
  • 37
Anbazhagan p
  • 943
  • 1
  • 14
  • 27

1 Answers1

0

The code shown in the master branch of the letsrate gem shows that the method in question accepts a variable number of arguments.

Try installing the gem from the master branch of GitHub to correct the problem. Add this code to your Gemfile and run bundle install

gem 'letsrate', git: '/muratguzel/letsrate'
OneChillDude
  • 7,856
  • 10
  • 40
  • 79