/Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- spec_helper (LoadError)
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `require'
from /Users/jeffreyerickatz/Desktop/sites/demo_app/spec/factories/user.rb:1:in `<top (required)>'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:245:in `load'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:245:in `block in load'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:245:in `load'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:20:in `block (2 levels) in find_definitions'
rom /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:19:in `each'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:19:in `block in find_definitions'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:15:in `each'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:15:in `find_definitions'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl_rails-4.1.0/lib/factory_girl_rails/railtie.rb:26:in `block in <class:Railtie>'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:34:in `call'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/application/finisher.rb:60:in `block in <module:Finisher>'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:30:in `run'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:54:in `each'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/application.rb:136:in `initialize!'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/jeffreyerickatz/Desktop/sites/demo_app/config/environment.rb:5:in `<top (required)>'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/application.rb:103:in `require'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/application.rb:103:in `require_environment!'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/commands.rb:40:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
I get that error (above) when I try to run my rails console, or really do anything. I am assuming some of my gems are not compatible with each other? I am updating from rails 3.1 to rails 3.2.
I recently did a bundle update. This what everything was updated to:
Jeffreys-MacBook-Pro:demo_app jeffreyerickatz$ bundle update
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Using rake (10.0.2)
Using i18n (0.6.1)
Using multi_json (1.3.7)
Installing activesupport (3.2.0)
Using builder (3.0.4)
Installing activemodel (3.2.0)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Installing actionpack (3.2.0)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.4.4)
Installing actionmailer (3.2.0)
Using arel (3.0.2)
Using tzinfo (0.3.35)
Installing activerecord (3.2.0)
Installing activeresource (3.2.0)
Using annotate (2.5.0)
Using ansi (1.4.3)
Using xml-simple (1.1.2)
Using aws-s3 (0.6.3)
Using multi_xml (0.5.1)
Using httparty (0.9.0)
Using json (1.7.5)
Using nokogiri (1.5.5)
Using uuidtools (2.1.3)
Using aws-sdk (1.3.9)
Using bootstrap-sass (2.0.0)
Using will_paginate (3.0.3)
Using bootstrap-will_paginate (0.0.5)
Using bundler (1.1.5)
Using hsume2-state_machine (1.0.5)
Using call_center (0.1.7)
Using carmen (0.2.13)
Using clockwork (0.4.1)
Using cocaine (0.4.2)
Using coderay (1.0.8)
Using coffee-script-source (1.4.0)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using rdoc (3.12)
Using thor (0.14.6)
Installing railties (3.2.0)
Using coffee-rails (3.2.2)
Using diff-lcs (1.1.3)
Using factory_girl (4.1.0)
Using factory_girl_rails (4.1.0)
Using faker (1.1.2)
Using fakeweb (1.3.0)
Using foreman (0.60.2)
Using googlecharts (1.6.8)
Using listen (0.6.0)
Using lumberjack (1.0.2)
Using method_source (0.8.1)
Using slop (3.3.3)
Using pry (0.9.10)
Using guard (1.5.4)
Using guard-rspec (1.2.1)
Installing jquery-rails (2.1.4)
Using jwt (0.1.5)
Installing nested_form (0.3.1)
Using paperclip (3.3.1)
Using pg (0.14.1)
Using pry-nav (0.2.2)
Using pry-rails (0.2.2)
Installing rails (3.2.0)
Using rest-client (1.6.7)
Using rspec-core (2.7.1)
Using rspec-expectations (2.7.0)
Using rspec-mocks (2.7.0)
Using rspec (2.7.0)
Using rspec-rails (2.7.0)
Using ruby-graphviz (1.0.8)
Installing sass (3.2.3)
Using sass-rails (3.2.5)
Using simple_form (2.0.4)
Using spork (0.9.2)
Using sqlite3 (1.3.6)
Installing timecop (0.5.4)
Using turn (0.9.6)
Using twilio-ruby (3.9.0)
Using uglifier (1.3.0)
By the backtrace, it looks like line 1 of /Users/jeffreyerickatz/Desktop/sites/demo_app/spec/factories/user.rb is trying to load spec_helper.rb - you can safely remove this line, only specs should be requiring spec_helper.
how do you solve this? i did bundle install yet i still get errors from below.
unable to run rails server when it shows all bundles are installed. please help me out.
Master:disrupreneurs shaunstanislaus$ bundle install
Using rake (10.0.2)
Using i18n (0.6.1)
Using multi_json (1.3.7)
Using activesupport (3.2.8)
Using builder (3.0.4)
Using activemodel (3.2.8)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.8)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.4.4)
Using actionmailer (3.2.8)
Using arel (3.0.2)
Using tzinfo (0.3.35)
Using activerecord (3.2.8)
Using activeresource (3.2.8)
Using coffee-script-source (1.4.0)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.7.5)
Using rdoc (3.12)
Using thor (0.16.0)
Using railties (3.2.8)
Using coffee-rails (3.2.2)
Using diff-lcs (1.1.3)
Using multipart-post (1.1.5)
Using faraday (0.8.4)
Using hashie (1.2.0)
Using httpauth (0.2.0)
Using jquery-rails (2.1.4)
Using jwt (0.1.5)
Using oauth (0.4.7)
Using oauth2 (0.8.0)
Using omniauth (1.1.1)
Using omniauth-oauth2 (1.1.1)
Using omniauth-facebook (1.4.1) from git://github.com/mkdynamic/omniauth-facebook.git (at master)
Using omniauth-google-oauth2 (0.1.13)
Using omniauth-google-plus-oauth2 (0.0.1) from https://github.com/luke-gru/omniauth- google-plus-oauth2.git (at master)
Using omniauth-oauth (1.0.1)
Using omniauth-twitter (0.0.14) from https://github.com/arunagw/omniauth-twitter.git (at master)
Using bundler (1.2.2)
Using rails (3.2.8)
Using rb-readline (0.4.2)
Using rspec-core (2.12.0)
Using rspec-expectations (2.12.0)
Using rspec-mocks (2.12.0)
Using rspec (2.12.0)
Using sass (3.2.3)
Using sass-rails (3.2.5)
Using sqlite3 (1.3.6)
Using twitter-bootstrap-rails (2.1.6) from git://github.com/seyhunak/twitter-bootstrap- rails.git (at master)
Using uglifier (1.3.0)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
from this part it keeps failing to run rails s
how do i solve this'?
Master:disrupreneurs shaunstanislaus$ rails s
=> Booting WEBrick
=> Rails 3.2.8 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties- 3.2.8/lib/rails/railtie/configuration.rb:85:in `method_missing': undefined method `less' for # <Rails::Application::Configuration:0x007fe5032ffa18> (NoMethodError)
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/bundler/gems/twitter-bootstrap- rails-4ac83ab51931/lib/twitter/bootstrap/rails/engine.rb:15:in `block in <class:Engine>'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/shaunstanislaus/Documents/developer/web/disrupreneurs/config/environment.rb:5:in `<top (required)>'
from /Users/shaunstanislaus/Documents/developer/web/disrupreneurs/config.ru:4:in `require'
from /Users/shaunstanislaus/Documents/developer/web/disrupreneurs/config.ru:4:in `block in <main>'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /Users/shaunstanislaus/Documents/developer/web/disrupreneurs/config.ru:1:in `new'
from /Users/shaunstanislaus/Documents/developer/web/disrupreneurs/config.ru:1:in `<main>'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands/server.rb:46:in `app'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands/server.rb:70:in `start'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:50:in `tap'
from /Users/shaunstanislaus/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Also add gem 'less-rails'
Check out this post too:
Rails railties gem error "undefined method: 'less'"
Add in gemfile:
gem "therubyracer"
and run bundle install again
I am migrating a Rails 2.1.2 application to Rails 2.3.11
To make my life easier i used bundler but I get the following error when starting my server:
/Library/Ruby/Gems/1.8/gems/image_science-1.2.1/lib/image_science.rb:90: undefined method `inline' for ImageScience:Class (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:64:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:64:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:62:in `each'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:62:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:51:in `each'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:51:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler.rb:112:in `require'
from ./script/../config/boot.rb:113:in `load_gems'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.11/lib/initializer.rb:164:in `process'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.11/lib/initializer.rb:113:in `send'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.11/lib/initializer.rb:113:in `run'
from /Users/michaelkoper/code/beruby_git/config/environment.rb:18
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.11/lib/commands/server.rb:84
from script/server:3:in `require'
from script/server:3
It is kind of strange because i got it working without bundler. I think i am missing a gem dependency.
Gemfile:
gem 'mperham-deadlock_retry', :require => 'deadlock_retry'
gem 'hoptoad_notifier', '2.4.2'
gem 'will_paginate', '~> 2.3.15'
gem "activemerchant", :require => "active_merchant"
gem "newrelic_rpm"
gem 'calendar_date_select'
gem 'ckeditor', '3.4.3' gem 'automatic_foreign_key'
gem 'chronic'
gem 'mechanize'
gem 'rexml-expansion-fix'
gem 'image_science', '1.2.1'
gem 'inline', '0.1.0'
bundle install:
Using rake (0.8.7)
Using activesupport (2.3.11)
Using rack (1.1.2)
Using actionpack (2.3.11)
Using actionmailer (2.3.11)
Using builder (3.0.0)
Using braintree (2.10.0)
Using activemerchant (1.14.0)
Using activerecord (2.3.11)
Using activeresource (2.3.11)
Using redhillonrails_core (1.1.3)
Using automatic_foreign_key (1.2.0)
Using calendar_date_select (1.16.2)
Using cgi_multipart_eof_fix (2.5.0)
Using hoe (2.8.0)
Using chronic (0.2.3)
Using mime-types (1.16)
Using ckeditor (3.4.3)
Using columnize (0.3.2)
Using daemons (1.0.10)
Using fastthread (1.0.7)
Using gem_plugin (0.2.3)
Using highline (1.6.1)
Using hoptoad_notifier (2.4.2)
Using image_science (1.2.1)
Using inline (0.1.0)
Using linecache (0.43)
Using nokogiri (1.4.4)
Using mechanize (0.9.3)
Using mongrel (1.1.5)
Using mperham-deadlock_retry (1.0.0)
Using mysql (2.8.1)
Using newrelic_rpm (2.14.1)
Using rails (2.3.11)
Using rexml-expansion-fix (1.0.1)
Using ruby-debug-base (0.10.4)
Using ruby-debug (0.10.4)
Using will_paginate (2.3.15)
Using bundler (1.0.7)
Actually, it looks like you probably want this answer: ImageScience breaks on update to Rails 3
I am trying to join a Rails project. This project uses rails 2.3.8 and Ruby 1.8.7 so I am using RVM. I am also using gem v1.3.7
When I fire up the server, everything is ok. But then, when I try to access it through my browser, it crashes and I get the following trace:
/Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:440:in `load_missing_constant': uninitialized constant Rails::Engine (NameError)
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in `const_missing'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/devise_invitable-0.3.6/lib/devise_invitable/rails.rb:2
from /Users/ca/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Users/ca/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/devise_invitable-0.3.6/lib/devise_invitable.rb:16
from /Users/ca/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Users/ca/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/rails-2.3.8/lib/rails/gem_dependency.rb:215:in `load'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/rails-2.3.8/lib/initializer.rb:307:in `load_gems'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/rails-2.3.8/lib/initializer.rb:307:in `each'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/rails-2.3.8/lib/initializer.rb:307:in `load_gems'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/rails-2.3.8/lib/initializer.rb:169:in `process'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
from /Users/ca/Documents/Project/Sources/Project-test/config/environment.rb:9
from /Users/ca/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Users/ca/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /Users/ca/.rvm/gems/ruby-1.8.7-p334/gems/rails-2.3.8/lib/commands/server.rb:84
from /Users/ca/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Users/ca/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from ./script/server:3
Here are my installed gems:
actionmailer (2.3.8)
actionpack (2.3.8)
activemodel (3.0.5)
activerecord (2.3.8)
activeresource (2.3.8)
activesupport (3.0.5, 2.3.8)
addressable (2.2.4)
arel (2.0.9)
aws (2.4.4)
aws-s3 (0.6.2)
bcrypt-ruby (2.1.4)
builder (3.0.0, 2.1.2)
client_side_validations (2.9.9)
crack (0.1.8)
daemons (1.1.0)
dalli (1.0.2)
delayed_job (2.0.3)
devise (1.1.7)
devise_invitable (0.3.6)
faraday (0.5.7, 0.4.6)
fb_graph (1.5.3)
googlecharts (1.6.1)
http_connection (1.4.0)
httparty (0.7.4)
i18n (0.5.0)
json (1.5.1, 1.4.3)
mime-types (1.16)
multi_json (0.0.5)
multipart-post (1.1.0)
net-ldap (0.1.1)
nokogiri (1.4.4)
oa-basic (0.1.5)
oa-core (0.1.5)
oa-enterprise (0.1.5)
oa-oauth (0.1.5)
oa-openid (0.1.5)
oauth (0.4.4)
oauth2 (0.1.1, 0.0.13)
omniauth (0.1.5)
paperclip (2.3.8)
pyu-ruby-sasl (0.0.3.2)
rack (1.1.1)
rack-openid (1.1.2)
rails (2.3.8)
rake (0.8.7)
RedCloth (4.2.7)
rest-client (1.6.1)
ruby-openid (2.1.8)
ruby-openid-apps-discovery (1.2.0)
rubygems-update (1.3.7)
rubyntlm (0.1.1)
tzinfo (0.3.24)
uuidtools (2.1.2)
validates_timeliness (2.3.0)
validation_reflection (0.3.7)
validation_reflection-active_model (0.3.1)
warden (1.0.3)
will_paginate (2.3.15)
xml-simple (1.0.14)
Where does the problem come from?
Thank you very much for your help!
Your version of the DeviseInvitable is too new for Rails 2.3.
DeviseInvitable currently only support Rails 3, if you want to use it with Rails 2.3 you must install version 0.2.3
As is Devise 1.1
Support for Rails 2.3.x can be found by installing Devise 1.0.x from the v1.0 branch.
Run
gem uninstall devise devise_invitable
gem install devise --version 1.0.10
gem install devise_invitable --version 0.2.3
It was been a long time I haven't run cucumber in my project. It's running good before but now, when I try to run cucumber features, I have this error:
Using the default profile...
no such file to load -- zip/zip (MissingSourceFile)
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require'
/home/florence/.gem/ruby/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require'
/home/florence/NetBeansProjects/famicity/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require'
/home/florence/NetBeansProjects/famicity/app/controllers/albums_controller.rb:1
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require'
/home/florence/.gem/ruby/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require'
/home/florence/NetBeansProjects/famicity/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require'
/home/florence/NetBeansProjects/famicity/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load'
/home/florence/NetBeansProjects/famicity/vendor/rails/activesupport/lib/active_support/dependencies.rb:224:in `depend_on'
/home/florence/NetBeansProjects/famicity/vendor/rails/activesupport/lib/active_support/dependencies.rb:136:in `require_dependency'
/home/florence/NetBeansProjects/famicity/vendor/rails/railties/lib/initializer.rb:414:in `load_application_classes'
/home/florence/NetBeansProjects/famicity/vendor/rails/railties/lib/initializer.rb:413:in `each'
/home/florence/NetBeansProjects/famicity/vendor/rails/railties/lib/initializer.rb:413:in `load_application_classes'
/home/florence/NetBeansProjects/famicity/vendor/rails/railties/lib/initializer.rb:411:in `each'
/home/florence/NetBeansProjects/famicity/vendor/rails/railties/lib/initializer.rb:411:in `load_application_classes'
/home/florence/NetBeansProjects/famicity/config/../vendor/rails/railties/lib/initializer.rb:197:in `process'
/home/florence/NetBeansProjects/famicity/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/home/florence/NetBeansProjects/famicity/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/home/florence/NetBeansProjects/famicity/config/environment.rb:14
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require'
/home/florence/.gem/ruby/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require'
/home/florence/NetBeansProjects/famicity/features/support/env.rb:8
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require'
/home/florence/.gem/ruby/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require'
/home/florence/.gem/ruby/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/rb_support/rb_language.rb:124:in `load_code_file'
/home/florence/.gem/ruby/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/step_mother.rb:84:in `load_code_file'
/home/florence/.gem/ruby/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/step_mother.rb:76:in `load_code_files'
/home/florence/.gem/ruby/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/step_mother.rb:75:in `each'
/home/florence/.gem/ruby/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/step_mother.rb:75:in `load_code_files'
/home/florence/.gem/ruby/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/cli/main.rb:48:in `execute!'
/home/florence/.gem/ruby/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/cli/main.rb:20:in `execute'
/home/florence/.gem/ruby/1.8/gems/cucumber-0.6.2/bin/cucumber:8
/usr/bin/cucumber:19:in `load'
/usr/bin/cucumber:19
Herewith, my gem list :
actionmailer (2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 1.3.3)
actionpack (2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 1.13.3)
actionwebservice (1.2.3)
activerecord (2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 1.15.3)
activeresource (2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.3.2)
activesupport (2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.3.2, 1.4.2)
adzap-ar_mailer (2.1.8, 2.1.5)
aws-s3 (0.6.2)
builder (2.1.2)
calendar_date_select (1.16.1, 1.15)
cgi_multipart_eof_fix (2.5.0)
chronic (0.2.3)
color (1.4.1)
contacts (1.2.3)
cucumber (0.6.2)
cucumber-rails (0.2.4)
daemons (1.0.10)
database_cleaner (0.5.0, 0.4.3)
devise (1.0.7)
diff-lcs (1.1.2)
digitalpardoe-rflickr (1.1.2)
eventmachine (0.12.8)
facebooker (1.0.44)
fastercsv (1.5.0)
fastthread (1.0.7)
gdata (1.1.1)
gem_plugin (0.2.3)
geokit (1.5.0)
hoe (2.3.2)
hpricot (0.8.1)
icalendar (1.1.4)
json (1.1.7)
json_pure (1.4.3, 1.2.0)
levenshtein (0.2.0)
lockfile (1.4.3)
macaddr (1.0.0)
memcache-client (1.7.4)
mime-types (1.16)
mocha (0.9.7)
money (2.1.4)
mongrel (1.1.5)
mysql (2.8.1, 2.7)
net-http-persistent (1.2.1)
newrelic_rpm (2.9.9)
nokogiri (1.4.1)
objectify-xml (0.2.3)
packet (0.1.15)
paperclip (2.3.1.1)
paypal (2.0.0)
pdf-writer (1.1.8)
polyglot (0.2.9)
rack (1.0.1, 1.0.0)
rack-test (0.5.3)
rails (2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.3.2)
rake (0.8.7)
rc-rest (4.0)
rest-client (1.0.3)
rflickr (2006.02.01)
rmagick (2.13.1)
rspec (1.3.0)
rspec-rails (1.3.2)
ruby-picasa (0.2.1)
rubyforge (2.0.4, 1.0.4)
rubygems-update (1.3.4)
rvideo-tecnobrat (0.9.4)
selenium-client (1.2.18)
term-ansicolor (1.0.4)
thin (1.2.7, 1.2.2)
transaction-simple (1.4.0)
treetop (1.4.3)
trollop (1.16.2)
ultrasphinx (1.11)
uuid (2.3.1)
validates_timeliness (2.2.2)
viddler (0.2.2)
warden (0.10.7)
webrat (0.7.0)
will_paginate (2.2.2)
xml-magic (0.1.1)
xml-simple (1.0.12)
Any help will be appreciate.
Thank's in advance.
Solutions above did not work. Solution for me was to require rubyzip version less than 1.0 i.e.
gem 'rubyzip', '~> 0.9.9'
It seems the latest selenium-webdriver now requires rubyzip < 1.0.0 so this shouldn't be a problem anymore but posting in case of it happens to someone else.
I found my answer, the problem is about a gem named "rubyzip" that missed in my gem list.
I don't quite understand the source of this error. It seems like a missing dependency of Active Support. Anyway, I was able to get past the error by explicitly adding the gem and requiring it in my Gemfile:
gem 'rubyzip', :require => 'zip/zip'
This is an interface-breaking change when moving rubyzip from 0.9.9 to 1.0.0. The issue is described here.
As a short-cut back to working, you may be interested in the zip-zip gem.
I had this issue as well when trying to run cucumber after updating selenium-webdriver.
The newest version of selenium now requires rubyzip ~> 1.0, which you will need to put in your Gemfile and explicitly require:
gem 'rubyzip', require: 'zip'
When using phusion passenger it seems that the gems have to be installed globally.
When I ran 'gem install ' from within my project directory it showed the gem as being installed but still resulted in the 'no such file to load...' error.
On a hunch I went outside the project directory and did a 'gem list' and the gem installed above was not listed, so I did 'gem install ' outside of the project directory and the error was fixed.
Please not that this was Phusion Passenger implementation not just rails.