Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Failed to start a rails application

#4130

rails server fails to start the application

=> Booting WEBrick => Rails 3.0.0.beta1 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting
/home/hemant/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/railtie/configuration.rb:86:in method_missing': undefined local variable or methodmetals' for #<Rails::Engine::Configuration:0x00000015081de8> (NameError)

    from /home/hemant/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/railtie/configuration.rb:121:in `block (2 levels) in default_middleware'
    from /home/hemant/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dispatch/middleware/stack.rb:35:in `call'
    from /home/hemant/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dispatch/middleware/stack.rb:35:in `klass'
    from /home/hemant/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dispatch/middleware/stack.rb:61:in `=='
    from /home/hemant/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/active_record/railtie.rb:65:in `include?'
    from /home/hemant/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/active_record/railtie.rb:65:in `block in <class:Railtie>'
    from /home/hemant/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/initializable.rb:25:in `instance_exec'
    from /home/hemant/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/initializable.rb:25:in `run'
    from /home/hemant/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /home/hemant/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/initializable.rb:54:in `each'
    from /home/hemant/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/initializable.rb:54:in `run_initializers'
    from /home/hemant/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/application.rb:70:in `initialize!'
    from /home/hemant/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/application.rb:44:in `method_missing'
    from /home/hemant/code/kashmin/config/environment.rb:5:in `<top (required

Reported by Hemant Patel · March 8th, 2010 @ 10:48 AM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Stephan Kaag
  2. Stephan Kaag
  3. Stephan Kaag
    Stephan Kaag

    Hemant: do you use warden/devise in your application? That might be the underlying issue. Devise is currently not compatible with edge Rails.

    http://github.com/plataformatec/devise/issues#issue/142

    March 8th, 2010 @ 05:44 PM

  4. Hemant Patel
    Hemant Patel

    yes i think that is the problem there.

    March 8th, 2010 @ 07:41 PM

  5. Hemant Patel
    Hemant Patel

    sorry guys i should i have investigated more before posting this ticket. Yes Devise is the cause of failure of starting up the application there on edge.

    March 8th, 2010 @ 07:43 PM

  6. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to invalid

    March 8th, 2010 @ 09:46 PM

  7. jack dempsey (jackdempsey)
    jack dempsey (jackdempsey)

    I had the same Hemant as I was bundling to rails source. Making this change in my Gemfile fixed things right up:

    gem 'rails', '3.0.0.beta'

    Devise seems to be working just fine with that release.

    HTH

    March 10th, 2010 @ 05:05 AM