I am trying to install sharetribe from Github
I followed from the start and installed all prerequisites.
When executing the command the build failed with:
NoMethodError: undefined method `dump' for #MessagePack::Factory:0x00007fcf4f984a38
Did you mean? dup
trace
bundle exec rake db:create db:structure:load --trace /Users/david/sharetribe/.bundle/ruby/2.6.0/gems/bootsnap-1.7.5/lib/bootsnap/compile_cache/yaml.rb:46:in install!' /Users/david/sharetribe/.bundle/ruby/2.6.0/gems/bootsnap-1.7.5/lib/bootsnap/compile_cache.rb:20:in setup'
/Users/david/sharetribe/.bundle/ruby/2.6.0/gems/bootsnap-1.7.5/lib/bootsnap.rb:69:in setup' /Users/david/sharetribe/.bundle/ruby/2.6.0/gems/bootsnap-1.7.5/lib/bootsnap.rb:110:in default_setup'
/Users/david/sharetribe/.bundle/ruby/2.6.0/gems/bootsnap-1.7.5/lib/bootsnap/setup.rb:4:in <top (required)>' /Users/david/sharetribe/config/boot.rb:4:in require'
/Users/david/sharetribe/config/boot.rb:4:in <top (required)>' /Users/david/sharetribe/config/application.rb:3:in require_relative'
/Users/david/sharetribe/config/application.rb:3:in <top (required)>' /Users/david/sharetribe/Rakefile:4:in require'
/Users/david/sharetribe/Rakefile:4:in <top (required)>' /Users/david/sharetribe/.bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in load'
/Users/david/sharetribe/.bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in load_rakefile' /Users/david/sharetribe/.bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:703:in raw_load_rakefile'
/Users/david/sharetribe/.bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:104:in block in load_rakefile' /Users/david/sharetribe/.bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in standard_exception_handling'
/Users/david/sharetribe/.bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:103:in load_rakefile' /Users/david/sharetribe/.bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:82:in block in run'
/Users/david/sharetribe/.bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in standard_exception_handling' /Users/david/sharetribe/.bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:80:in run'
/Users/david/sharetribe/.bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in <top (required)>' /Users/david/sharetribe/.bundle/ruby/2.6.0/bin/rake:23:in load'
/Users/david/sharetribe/.bundle/ruby/2.6.0/bin/rake:23:in <top (required)>' /Users/david/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/cli/exec.rb:63:in load'
/Users/david/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/cli/exec.rb:63:in kernel_load' /Users/david/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/cli/exec.rb:28:in run'
/Users/david/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/cli.rb:494:in exec' /Users/david/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run'
/Users/david/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command' /Users/david/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/vendor/thor/lib/thor.rb:392:in dispatch'
/Users/david/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/cli.rb:30:in dispatch' /Users/david/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/vendor/thor/lib/thor/base.rb:485:in start'
/Users/david/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/cli.rb:24:in start' /Users/david/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/exe/bundle:49:in block in <top (required)>'
/Users/david/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/lib/bundler/friendly_errors.rb:130:in with_friendly_errors' /Users/david/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bundler-2.2.17/exe/bundle:37:in <top (required)>'
/Users/david/.rbenv/versions/2.6.5/bin/bundle:23:in `load'
Using bootsnap version 1.4.5 worked for me.
You have to update your gemfile for an exact version though, since
gem 'bootsnap', '~> 1.4.5', require: false
will update you to 1.4.9.
Use
gem 'bootsnap', '1.4.5', require: false
instead.
Related
I am trying to install insoshi in Rails 3.2.21 with ruby 1.9.3 every thing gone good but now I am stopped with an error when I try $rake gems:install it gives an error
rake aborted!
LoadError: cannot load such file -- test/unit/error
C:/Sites/insoshi/vendor/rails/activesupport/lib/active_support/dependencies.rb:1
53:in `block in require'
C:/Sites/insoshi/vendor/rails/activesupport/lib/active_support/dependencies.rb:5
21:in `new_constants_in'
C:/Sites/insoshi/vendor/rails/activesupport/lib/active_support/dependencies.rb:1
53:in `require'
C:/Sites/insoshi/vendor/rails/activesupport/lib/active_support/deprecation.rb:22
4:in `<top (required)>'
C:/Sites/insoshi/vendor/rails/activesupport/lib/active_support/dependencies.rb:1
53:in `block in require'
C:/Sites/insoshi/vendor/rails/activesupport/lib/active_support/dependencies.rb:5
21:in `new_constants_in'
C:/Sites/insoshi/vendor/rails/activesupport/lib/active_support/dependencies.rb:1
53:in `require'
C:/Sites/insoshi/vendor/rails/activesupport/lib/active_support.rb:37:in `<top (r
equired)>'
C:/Sites/insoshi/vendor/rails/railties/lib/tasks/misc.rake:11:in `<top (required
)>'
C:/Sites/insoshi/vendor/rails/railties/lib/tasks/rails.rb:4:in `load'
C:/Sites/insoshi/vendor/rails/railties/lib/tasks/rails.rb:4:in `block in <top (r
equired)>'
C:/Sites/insoshi/vendor/rails/railties/lib/tasks/rails.rb:4:in `each'
C:/Sites/insoshi/vendor/rails/railties/lib/tasks/rails.rb:4:in `<top (required)>
'
C:/Sites/insoshi/Rakefile:10:in `<top (required)>'
(See full trace by running task with --trace)
I am totally new with rails. hope for help
Try adding following gem into your gem file
gem 'test-unit'
Hope it will solve your problem.
I'm dealing with this error below. It started form gem file when I initialized Mailchimp - gem 'refinerycms-mailchimp', :branch => 'refinery-2.0'
/usr/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in
require': cannot load such file -- refinery (LoadError) from
/usr/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in
block in require' from
/usr/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in
load_dependency' from
/usr/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in
require' from
/usr/lib/ruby/gems/1.9.1/gems/refinerycms-mailchimp-0.0.2/lib/refinerycms-mailchimp.rb:1:in <top (required)>' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in
require' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in
block (2 levels) in require' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in
each' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in
block in require' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in
each' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in
require' from
/usr/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:132:in
require' from
/home/elvijs/workspace/dzma2/config/application.rb:13:in <top
(required)>' from
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:53:in
require' from
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:53:in
block in <top (required)>' from
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in
tap' from
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in
<top (required)>' from script/rails:6:inrequire' from
script/rails:6:in `'
I am trying to modify a rails app built on an another computer ,I ran bundle install
and all gems got installed.But when I run rake db:migrate ,it throws down a bunch of errors ,I am new to rail and cant understand what those error messages
rake aborted!
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined symbol: ruby_current_thread - /home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/ruby-debug-base19-0.11.25/lib/ruby-debug-base.rb:1:in `require'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/ruby-debug-base19-0.11.25/lib/ruby-debug-base.rb:1:in `<top (required)>'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:5:in `require'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:5:in `<top (required)>'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `require'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `each'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `block in require'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `each'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `require'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#global/gems/bundler-1.2.3/lib/bundler.rb:128:in `require'
/home/diadara/hw3_rottenpotatoes/config/application.rb:13:in `<top (required)>'
/home/diadara/hw3_rottenpotatoes/Rakefile:5:in `require'
/home/diadara/hw3_rottenpotatoes/Rakefile:5:in `<top (required)>'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/bin/rake:19:in `<main>'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/bin/ruby_noexec_wrapper:14:in `eval'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/bin/ruby_noexec_wrapper:14:in `<main>'
it looks like you did not properly install ruby-debug in your project. remove it from the gemfile if it is not needed or have a look at this answer to fix it: Cannot use ruby-debug19 with 1.9.3-p0?
I'm using cucumber 1.0 installed with cucumber-rails on Rails 3. I'd like to use autotest, but it seems autotest invokes cucumber with just cucumber and not bundle exec cucumber . bundle exec cucumber works fine for me, but when I run it with just cucumber, I get:
Using the default profile...
uninitialized constant Diff::ReadableDiffer (NameError)
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/rake-0.9.2/lib/rake/ext/module.rb:36:in `const_missing'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/test-unit-2.3.0/lib/test/unit/ui/console/testrunner.rb:336:in `<module:Console>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/test-unit-2.3.0/lib/test/unit/ui/console/testrunner.rb:17:in `<module:UI>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/test-unit-2.3.0/lib/test/unit/ui/console/testrunner.rb:16:in `<module:Unit>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/test-unit-2.3.0/lib/test/unit/ui/console/testrunner.rb:15:in `<module:Test>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/test-unit-2.3.0/lib/test/unit/ui/console/testrunner.rb:14:in `<top (required)>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/redgreen-1.2.2/lib/redgreen.rb:2:in `<top (required)>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `block in require'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/bundler-1.0.15/lib/bundler.rb:120:in `require'
/Users/Mike/Projects/exlab/config/application.rb:7:in `<top (required)>'
/Users/Mike/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
/Users/Mike/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
/Users/Mike/Projects/exlab/config/environment.rb:2:in `<top (required)>'
/Users/Mike/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
/Users/Mike/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-rails-1.0.2/lib/cucumber/rails.rb:5:in `<top (required)>'
/Users/Mike/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:in `require'
/Users/Mike/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:in `rescue in require'
/Users/Mike/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
/Users/Mike/Projects/exlab/features/support/env.rb:7:in `<top (required)>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/rb_support/rb_language.rb:143:in `load'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/rb_support/rb_language.rb:143:in `load_code_file'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/runtime/support_code.rb:176:in `load_file'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/runtime/support_code.rb:78:in `block in load_files!'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/runtime/support_code.rb:77:in `each'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/runtime/support_code.rb:77:in `load_files!'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/runtime.rb:137:in `load_step_definitions'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/runtime.rb:39:in `run!'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/cli/main.rb:43:in `execute!'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/cli/main.rb:20:in `execute'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/bin/cucumber:14:in `<top (required)>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/bin/cucumber:19:in `load'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/bin/cucumber:19:in `<main>'
Any clues?
It might be a problem with TestUnit being replaced by MiniTest in Ruby1.9. You could solve it adding this to your Gemfile:
group :development do
gem 'test-unit', '~> 2.0.0'
end
I am having a problem gettin my Rails 3.1.0.rc4 application running because of an error or conflict with will_paginate gem.
The error produced when I try to start the server is as follows:
/Users/imac/.rvm/gems/ruby-1.9.2-p180#hbg_3.1/gems/will_paginate-2.3.15/lib/will_paginate.rb:39:in `enable_activerecord': uninitialized constant ActiveRecord::Associations::AssociationCollection (NameError)
from /Users/imac/.rvm/gems/ruby-1.9.2-p180#hbg_3.1/gems/will_paginate-2.3.15/lib/will_paginate.rb:88:in `<top (required)>'
from /Users/imac/.rvm/gems/ruby-1.9.2-p180#hbg_3.1/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
from /Users/imac/.rvm/gems/ruby-1.9.2-p180#hbg_3.1/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /Users/imac/.rvm/gems/ruby-1.9.2-p180#hbg_3.1/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each'
from /Users/imac/.rvm/gems/ruby-1.9.2-p180#hbg_3.1/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `block in require'
from /Users/imac/.rvm/gems/ruby-1.9.2-p180#hbg_3.1/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each'
from /Users/imac/.rvm/gems/ruby-1.9.2-p180#hbg_3.1/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require'
from /Users/imac/.rvm/gems/ruby-1.9.2-p180#hbg_3.1/gems/bundler-1.0.15/lib/bundler.rb:120:in `require'
from /Users/imac/railsprojects/hbg/config/application.rb:12:in `<top (required)>'
from /Users/imac/.rvm/gems/ruby-1.9.2-p180#hbg_3.1/gems/railties-3.1.0.rc4/lib/rails/commands.rb:52:in `require'
from /Users/imac/.rvm/gems/ruby-1.9.2-p180#hbg_3.1/gems/railties-3.1.0.rc4/lib/rails/commands.rb:52:in `block in <top (required)>'
from /Users/imac/.rvm/gems/ruby-1.9.2-p180#hbg_3.1/gems/railties-3.1.0.rc4/lib/rails/commands.rb:49:in `tap'
from /Users/imac/.rvm/gems/ruby-1.9.2-p180#hbg_3.1/gems/railties-3.1.0.rc4/lib/rails/commands.rb:49:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
I run into the same problem. It seems that this is a known issue that will be fixed soon : https://github.com/mislav/will_paginate/issues/124
There is patch you can use in the meantime : https://github.com/p7r/will_paginate/commit/53d1da6da003dc172ee054e4cc416d0723f00b88
Or, better yet, use the following line in your Gemfile:
gem "will_paginate", :git => "https://github.com/p7r/will_paginate.git", :branch => "rails3"
Hope this answers your question.