muratguzel / letsrate

The best way to add rating capabilities to your rails application and your activerecord models.
http://letsrate.herokuapp.com
198 stars 234 forks source link

`create_migration': wrong number of arguments (3 for 0) (ArgumentError) #85

Open wonderer007 opened 9 years ago

wonderer007 commented 9 years ago

when i run following command rails g letsrate user it give this error

/home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/letsrate-1.0.9/lib/generators/letsrate/letsrate_generator.rb:37:in create_migration': wrong number of arguments (3 for 0) (ArgumentError) from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/railties-4.2.0/lib/rails/generators/migration.rb:63:inmigration_template' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/letsrate-1.0.9/lib/generators/letsrate/letsrate_generator.rb:33:in create_cacheable_migration' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/thor-0.19.1/lib/thor/command.rb:27:inrun' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/thor-0.19.1/lib/thor/invocation.rb:133:inblock in invoke_all' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/thor-0.19.1/lib/thor/invocation.rb:133:in each' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/thor-0.19.1/lib/thor/invocation.rb:133:inmap' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/thor-0.19.1/lib/thor/invocation.rb:133:in invoke_all' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/thor-0.19.1/lib/thor/group.rb:232:indispatch' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/thor-0.19.1/lib/thor/base.rb:440:in start' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/railties-4.2.0/lib/rails/generators.rb:157:ininvoke' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/railties-4.2.0/lib/rails/commands/generate.rb:13:in <top (required)>' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:inrequire' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in block in require' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:inload_dependency' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in require' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:123:inrequire_command!' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:130:in generate_or_destroy' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:50:ingenerate' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in run_command!' from /home/office/.rvm/gems/ruby-2.2.1@speaker-replay/gems/railties-4.2.0/lib/rails/commands.rb:17:in<top (required)>' from bin/rails:4:in require' from bin/rails:4:in

'

ThomasLamiraud commented 9 years ago

Solved in #76