I am trying to test my app on Rails beta3. When I am trying to run the application on rails server I get the following error (with stacktrace)
/home/sambhav/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'rails-api'. (Bundler::GemRequireError)
from /home/sambhav/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /home/sambhav/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
from /home/sambhav/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
from /home/sambhav/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
from /home/sambhav/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
from /home/sambhav/.rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
from /home/sambhav/caroobi/caroobi/config/application.rb:7:in `<top (required)>'
from /home/sambhav/caroobi/caroobi/vendor/cache/bundler/gems/rails-cf1d45bd8930/railties/lib/rails/commands/commands_tasks.rb:88:in `require'
from /home/sambhav/caroobi/caroobi/vendor/cache/bundler/gems/rails-cf1d45bd8930/railties/lib/rails/commands/commands_tasks.rb:88:in `block in server'
from /home/sambhav/caroobi/caroobi/vendor/cache/bundler/gems/rails-cf1d45bd8930/railties/lib/rails/commands/commands_tasks.rb:85:in `tap'
from /home/sambhav/caroobi/caroobi/vendor/cache/bundler/gems/rails-cf1d45bd8930/railties/lib/rails/commands/commands_tasks.rb:85:in `server'
from /home/sambhav/caroobi/caroobi/vendor/cache/bundler/gems/rails-cf1d45bd8930/railties/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /home/sambhav/caroobi/caroobi/vendor/cache/bundler/gems/rails-cf1d45bd8930/railties/lib/rails/command.rb:20:in `run'
from /home/sambhav/caroobi/caroobi/vendor/cache/bundler/gems/rails-cf1d45bd8930/railties/lib/rails/commands.rb:18:in `<top (required)>'
from /home/sambhav/caroobi/caroobi/bin/rails:9:in `require'
from /home/sambhav/caroobi/caroobi/bin/rails:9:in `<top (required)>'
from /home/sambhav/caroobi/caroobi/vendor/cache/gems/spring-1.6.4/lib/spring/client/rails.rb:28:in `load'
from /home/sambhav/caroobi/caroobi/vendor/cache/gems/spring-1.6.4/lib/spring/client/rails.rb:28:in `call'
from /home/sambhav/caroobi/caroobi/vendor/cache/gems/spring-1.6.4/lib/spring/client/command.rb:7:in `call'
from /home/sambhav/caroobi/caroobi/vendor/cache/gems/spring-1.6.4/lib/spring/client.rb:28:in `run'
from /home/sambhav/caroobi/caroobi/vendor/cache/gems/spring-1.6.4/bin/spring:49:in `<top (required)>'
from /home/sambhav/caroobi/caroobi/vendor/cache/gems/spring-1.6.4/lib/spring/binstub.rb:11:in `load'
from /home/sambhav/caroobi/caroobi/vendor/cache/gems/spring-1.6.4/lib/spring/binstub.rb:11:in `<top (required)>'
from /home/sambhav/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/sambhav/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/sambhav/caroobi/caroobi/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
Gemfile
source 'https://rubygems.org'
gem 'rails', github: "rails/rails"
gem 'sass-rails', '~> 5.0'
gem 'mysql2', '0.3.18'
gem 'uglifier', '>= 1.3.0'
gem 'geoip', '1.4.0'
gem 'sanitize', '3.0.0'
gem 'i18n-js', '2.1.2'
gem 'bootstrap-sass', '3.2.0.1' # Bootstrap in SCSS
gem 'exception_notification', '4.0.1'
gem 'rake', '10.3.2'
gem 'newrelic_rpm', '~> 3.14', '>= 3.14.2.312'
gem 'active_model_serializers', '0.9.4'
gem 'rails-api', '0.4.0'
gem 'prerender_rails'
gem 'i18n-docs'
group :development, :test do
gem 'pry'
gem 'spring'
gem 'annotator', require: false
gem 'letter_opener'
gem 'rspec-rails'
gem 'rack-cors'
gem 'sqlite3'
end
Note: I have already installed NodeJS as a few posts suggested.
Ruby Version: 2.3.0
Anything else I could try?
If you're working with Rails 5, do not include the gem rails-api (which is already included in Rails 5).
Related
I'm trying to install simple_form with bootstrap for Rails 4.2.5 Ruby 2.2.3p173. Tried also without the bootstrap and same output
I've read github page for simple_form, bootstrap and sass-rails. Tried some questions and answers here and the same error, so here it goes:
>rails generate simple_form:install
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:
in `rescue in block (2 levels) in require': There was an error while trying to l
oad the gem 'sass-rails'. (Bundler::GemRequireError)
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/r
untime.rb:76:in `block (2 levels) in require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/r
untime.rb:72:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/r
untime.rb:72:in `block in require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/r
untime.rb:61:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/r
untime.rb:61:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler.r
b:99:in `require'
from C:/Users/Francisco/Desktop/RoR/workout_app/config/application.rb:7:
in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/com
mands/commands_tasks.rb:141:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/com
mands/commands_tasks.rb:141:in `require_application_and_environment!'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/com
mands/commands_tasks.rb:128:in `generate_or_destroy'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/com
mands/commands_tasks.rb:50:in `generate'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/com
mands/commands_tasks.rb:39:in `run_command!'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/com
mands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
I tried different versions of sass-rails, but nothing worked.
The gems:
gem 'rails', '4.2.5'
gem 'sqlite3'
gem 'sass-rails', '5.0'
gem 'uglifier', '1.3.0'
gem 'coffee-rails', '4.1.1'
gem 'haml', '4.0'
gem 'simple_form', '3.2'
gem 'bootstrap-sass', '3.3.6'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
Thanks!
This worked for me (I don't have bootstrap)
I changed the Gemfile to:
gem 'sass-rails', '~> 5.0'
Then uninstalled all sass-rails versions and installed again:
sudo gem uninstall sass-rails
bundle install
bundle update
Trying to get this to work, but I'm having trouble. I'm following the instructions at:
https://www.railstutorial.org/book/beginning#cha-beginning
I get to 1.3.2 and I type:
rails server -b $IP -p $PORT
Which results in this error instead of WEBrick running:
/usr/local/rvm/gems/ruby-2.1.5#rails4/gems/sass-rails-5.0.1/lib/sass/rails/helpers.rb:11:in `<top (required)>': uninitialized constant Sass::Script (NameError)
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `require'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `require'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.5#global/gems/bundler-1.7.6/lib/bundler/runtime.rb:76:in `require'
from /usr/local/rvm/gems/ruby-2.1.5#global/gems/bundler-1.7.6/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /usr/local/rvm/gems/ruby-2.1.5#global/gems/bundler-1.7.6/lib/bundler/runtime.rb:72:in `each'
from /usr/local/rvm/gems/ruby-2.1.5#global/gems/bundler-1.7.6/lib/bundler/runtime.rb:72:in `block in require'
from /usr/local/rvm/gems/ruby-2.1.5#global/gems/bundler-1.7.6/lib/bundler/runtime.rb:61:in `each'
from /usr/local/rvm/gems/ruby-2.1.5#global/gems/bundler-1.7.6/lib/bundler/runtime.rb:61:in `require'
from /usr/local/rvm/gems/ruby-2.1.5#global/gems/bundler-1.7.6/lib/bundler.rb:133:in `require'
from /home/ubuntu/workspace/hello_app/config/application.rb:7:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `require'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
from /home/ubuntu/workspace/hello_app/bin/rails:8:in `require'
from /home/ubuntu/workspace/hello_app/bin/rails:8:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `call'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/spring-1.1.3/lib/spring/client.rb:26:in `run'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/spring-1.1.3/bin/spring:48:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load'
from /usr/local/rvm/gems/ruby-2.1.5#rails4/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>'
from /home/ubuntu/workspace/hello_app/bin/spring:13:in `require'
from /home/ubuntu/workspace/hello_app/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
This seems to only happen when you replace the Gemfile code with the code specified to get the explicit version of Ruby gems (the code below).
source 'https://rubygems.org'
gem 'rails', '4.2.0'
gem 'sass-rails', '5.0.1'
gem 'uglifier', '2.5.3'
gem 'coffee-rails', '4.1.0'
gem 'jquery-rails', '4.0.3'
gem 'turbolinks', '2.3.0'
gem 'jbuilder', '2.2.3'
gem 'sdoc', '0.4.0', group: :doc
group :development, :test do
gem 'sqlite3', '1.3.9'
gem 'byebug', '3.4.0'
gem 'web-console', '2.0.0.beta3'
gem 'spring', '1.1.3'
end
Looks like the tutorial has just recently fallen out of date. If you update your gemfile from
gem 'sass-rails', '5.0.1'
to
gem 'sass-rails', '5.0.2'
then bundle install again and launch the server, it should work just fine.
(If you prefer, you can also run a workaround by adding
gem 'sass', '3.4.13'
before your existing, non-updated line:
gem 'sass-rails', '5.0.1'
in your gemfile, and doing a bundle install and launching the server. I don't know why you'd need to, though.)
For some reason I can't run my tests anymore in rspec. Posts on stack overflow says it might be a namespace issue but there's nothing to indicate that in my code base (in my view). having running rspec spec I get the following error.
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.0
/Users/garytsai/.rvm/gems/ruby-1.9.3-p545/gems/xpath-2.0.0/lib/xpath/dsl.rb:1:in `<top (required)>': XPath is not a module (TypeError)
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545/gems/xpath-2.0.0/lib/xpath.rb:3:in `require'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545/gems/xpath-2.0.0/lib/xpath.rb:3:in `<top (required)>'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545/gems/capybara-2.2.1/lib/capybara.rb:3:in `require'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545/gems/capybara-2.2.1/lib/capybara.rb:3:in `<top (required)>'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545#global/gems/bundler-1.6.0/lib/bundler/runtime.rb:76:in `require'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545#global/gems/bundler-1.6.0/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545#global/gems/bundler-1.6.0/lib/bundler/runtime.rb:72:in `each'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545#global/gems/bundler-1.6.0/lib/bundler/runtime.rb:72:in `block in require'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545#global/gems/bundler-1.6.0/lib/bundler/runtime.rb:61:in `each'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545#global/gems/bundler-1.6.0/lib/bundler/runtime.rb:61:in `require'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545#global/gems/bundler-1.6.0/lib/bundler.rb:132:in `require'
from /Users/garytsai/Projects/reader-tool/config/application.rb:13:in `<top (required)>'
from /Users/garytsai/Projects/reader-tool/config/environment.rb:2:in `require'
from /Users/garytsai/Projects/reader-tool/config/environment.rb:2:in `<top (required)>'
from /Users/garytsai/Projects/reader-tool/spec/spec_helper.rb:3:in `require'
from /Users/garytsai/Projects/reader-tool/spec/spec_helper.rb:3:in `<top (required)>'
from /Users/garytsai/Projects/reader-tool/spec/controllers/readers_controller_spec.rb:1:in `require'
from /Users/garytsai/Projects/reader-tool/spec/controllers/readers_controller_spec.rb:1:in `<top (required)>'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `each'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load_spec_files'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:in `run'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in `run'
from /Users/garytsai/.rvm/gems/ruby-1.9.3-p545/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun'
Any fixes for this? I already looked for my gemfile for anything that needs to be removed but there's nothing that seems to indicate or conflict with rspec
source 'https://rubygems.org'
ruby "1.9.3"
gem 'rails', '3.2.14'
gem 'jquery-rails'
gem 'simple_form'
gem 'pg'
gem 'thin'
gem 'XMLCanonicalizer'
gem 'humanize'
group :development do
gem 'better_errors'
gem 'binding_of_caller'
gem 'debugger'
gem 'quiet_assets'
gem 'sextant'
end
group :test do
gem 'capybara'
gem 'selenium-webdriver'
gem 'shoulda-matchers'
gem 'simplecov'
gem 'database_cleaner'
end
group :development, :test do
gem 'rspec-rails'
gem "factory_girl_rails", "~> 4.0"
gem 'faker'
gem "rack_session_access"
gem 'populator'
gem 'dotenv'
end
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
gem 'twitter-bootstrap-rails'
gem "less-rails"
gem "therubyracer"
end
After I upgraded my shoulda gem to 3.4.0, my tests would no longer run.
Context:
Ruby 1.9.3-p392
Rails 3.2.12
Rspec 2.13.0 Mac
OS X 10.8.3
When I set up my Gemfile and run bundle exec rspec spec I get the following errors:
#Gemfile #1
group :test do
gem 'rspec-rails', '2.13.0'
gem 'shoulda', '3.4.0'
end
Error: gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- rspec (LoadError)
#Gemfile #2
group :test do
gem 'factory_girl_rails', '4.2.1'
gem 'rspec-rails', '2.13.0'
gem 'shoulda-matchers', '1.5.0'
end
Error: gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- rspec (LoadError)
#Gemfile #3
group :test do
gem 'factory_girl_rails', '4.2.1'
gem 'rspec', '2.13.0'
gem 'shoulda', '3.4.0'
end
Error: /gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- rspec/rails (LoadError)
These are the only Gemfile versions that work, but they don't seem to be the correct setup:
#Gemfile #4
group :test do
gem 'factory_girl_rails', '4.2.1'
gem 'rspec', '2.13.0'
gem 'rspec-rails', '2.13.0'
gem 'shoulda-matchers', '1.5.0'
end
#Gemfile #5
group :test do
gem 'factory_girl_rails', '4.2.1'
gem 'rspec', '2.13.0'
gem 'rspec-rails', '2.13.0'
gem 'shoulda', '3.4.0'
end
Example of full error trace (typical):
/Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- rspec (LoadError)
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/shoulda-matchers-1.5.0/lib/shoulda/matchers/integrations/rspec.rb:2:in `<top (required)>'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/shoulda-matchers-1.5.0/lib/shoulda/matchers.rb:5:in `<top (required)>'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/shoulda-matchers-1.5.0/lib/shoulda-matchers.rb:1:in `<top (required)>'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in `require'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in `each'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in `block in require'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in `each'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in `require'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/bundler-1.3.4/lib/bundler.rb:132:in `require'
from /Users/wrburgess/dev/jbrb/league-server/config/application.rb:8:in `<top (required)>'
from /Users/wrburgess/dev/jbrb/league-server/config/environment.rb:2:in `require'
from /Users/wrburgess/dev/jbrb/league-server/config/environment.rb:2:in `<top (required)>'
from /Users/wrburgess/dev/jbrb/league-server/spec/spec_helper.rb:3:in `require'
from /Users/wrburgess/dev/jbrb/league-server/spec/spec_helper.rb:3:in `<top (required)>'
from /Users/wrburgess/dev/jbrb/league-server/spec/config/initializers/app_settings_spec.rb:1:in `require_relative'
from /Users/wrburgess/dev/jbrb/league-server/spec/config/initializers/app_settings_spec.rb:1:in `<top (required)>'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `block in load_spec_files'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `each'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load_spec_files'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:22:in `run'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:in `run'
from /Users/wrburgess/.rvm/gems/ruby-1.9.3-p392#league/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in `block in autorun'
Upgrade shoulda-matchers to 1.5.4 and change the gem group to
development and test
There was a regression in the 1.5.X to 1.5.4. I was having the same issue.
Here is my Gemfile:
source 'http://rubygems.org'
gem 'rails', '3.0.0'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'will_paginate', '3.0.pre2'
gem 'paperclip', :git => 'git://github.com/thoughtbot/paperclip.git'
gem 'mime-types', :require => 'mime/types'
gem 'rails3-generators'
gem 'devise', '~> 1.1.3'
gem 'devise_invitable', '~> 0.3.4'
gem 'declarative_authorization', :git => 'git://github.com/stffn/declarative_authorization.git'
gem 'aasm'
gem 'braintree'
gem 'thumbs_up'
gem 'best_in_place'
gem "friendly_id", "~> 3.2"
gem 'aws-s3'
group :development do
# Server
gem 'thin'
#gem 'rspec-rails', '2.0.1'
gem 'annotate-models', '1.0.4'
#gem 'rails-erd'
gem 'annotate'
gem 'faker', '0.3.1'
gem 'ruby_parser'
end
group :test do
gem 'rspec', '2.0.1'
gem 'webrat', '0.7.1'
#gem 'spork', '0.8.4'
#gem 'factory_girl_rails', '1.0'
end
Here is the error I am getting:
$ thin start
>> Using rack adapter
/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.7/lib/bundler.rb:199: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040766
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require': no such file to load -- rails_admin/application_controller (LoadError)
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `block in require'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
/myapp/config/initializers/rails_admin.rb:1:in `<top (required)>'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:235:in `load'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:235:in `block in load'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:235:in `load'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/engine.rb:201:in `block (2 levels) in <class:Engine>'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/engine.rb:200:in `each'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/engine.rb:200:in `block in <class:Engine>'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/initializable.rb:25:in `instance_exec'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/initializable.rb:25:in `run'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/initializable.rb:50:in `block in run_initializers'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/initializable.rb:49:in `each'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/initializable.rb:49:in `run_initializers'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/application.rb:134:in `initialize!'
/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/application.rb:77:in `method_missing'
/myapp/config/environment.rb:5:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
myapp/config.ru:3:in `block in <main>'
/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.2/lib/rack/builder.rb:46:in `instance_eval'
/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.2/lib/rack/builder.rb:46:in `initialize'
myapp/config.ru:1:in `new'
myapp/config.ru:1:in `<main>'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/lib/rack/adapter/loader.rb:36:in `eval'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/lib/rack/adapter/loader.rb:36:in `load'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/lib/rack/adapter/loader.rb:45:in `for'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/lib/thin/controllers/controller.rb:169:in `load_adapter'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/lib/thin/controllers/controller.rb:73:in `start'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/lib/thin/runner.rb:185:in `run_command'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
/.rvm/gems/ruby-1.9.2-p0/gems/thin-1.2.11/bin/thin:6:in `<top (required)>'
/.rvm/gems/ruby-1.9.2-p0/bin/thin:19:in `load'
/.rvm/gems/ruby-1.9.2-p0/bin/thin:19:in `<main>'
I used to have rails_admin installed, but I commented it out and ran bundle update and bundle install.
Still getting this error though.
Delete config/initializers/rails_admin.rb, relax and float down stream.