Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

method_missing': undefined method middleware' #145

Closed
kimjoar opened this issue Mar 10, 2010 · 4 comments
Closed

method_missing': undefined method middleware' #145

kimjoar opened this issue Mar 10, 2010 · 4 comments

Comments

@kimjoar
Copy link
Contributor

kimjoar commented Mar 10, 2010

With the following in my Gemfile:

gem "rails", :git => "git://github.com/rails/rails.git"
gem 'devise', "1.1.pre4"

When I do rails server, I get:

/Users/kimjoar/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/railtie/configuration.rb:82:in `method_missing': undefined method `middleware' for #<Rails::Engine::Configuration:0x000001057480f8> (NoMethodError)
  from /Users/kimjoar/.bundle/ruby/1.9.1/gems/devise-1.1.pre4/lib/devise/rails.rb:8:in `<class:Engine>'
  from /Users/kimjoar/.bundle/ruby/1.9.1/gems/devise-1.1.pre4/lib/devise/rails.rb:5:in `<module:Devise>'
  from /Users/kimjoar/.bundle/ruby/1.9.1/gems/devise-1.1.pre4/lib/devise/rails.rb:4:in `<top (required)>'
  from /Users/kimjoar/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/dependencies.rb:209:in `require'
  from /Users/kimjoar/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/dependencies.rb:209:in `block in require'
  from /Users/kimjoar/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/dependencies.rb:195:in `block in load_dependency'
  from /Users/kimjoar/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/dependencies.rb:523:in `new_constants_in'
  from /Users/kimjoar/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/dependencies.rb:195:in `load_dependency'
  from /Users/kimjoar/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/dependencies.rb:209:in `require'
  from /Users/kimjoar/.bundle/ruby/1.9.1/gems/devise-1.1.pre4/lib/devise.rb:208:in `<top (required)>'
  from /usr/local/Cellar/Gems/1.9.1/gems/bundler-0.9.10/lib/bundler/runtime.rb:41:in `require'
  from /usr/local/Cellar/Gems/1.9.1/gems/bundler-0.9.10/lib/bundler/runtime.rb:41:in `block (2 levels) in require'
  from /usr/local/Cellar/Gems/1.9.1/gems/bundler-0.9.10/lib/bundler/runtime.rb:36:in `each'
  from /usr/local/Cellar/Gems/1.9.1/gems/bundler-0.9.10/lib/bundler/runtime.rb:36:in `block in require'
  from /usr/local/Cellar/Gems/1.9.1/gems/bundler-0.9.10/lib/bundler/runtime.rb:35:in `each'
  from /usr/local/Cellar/Gems/1.9.1/gems/bundler-0.9.10/lib/bundler/runtime.rb:35:in `require'
  from /usr/local/Cellar/Gems/1.9.1/gems/bundler-0.9.10/lib/bundler.rb:71:in `require'
  from /Users/kimjoar/Documents/Projects/ES/config/application.rb:6:in `<top (required)>'
  from /Users/kimjoar/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/commands.rb:39:in `require'
  from /Users/kimjoar/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/commands.rb:39:in `<top (required)>'
  from /Users/kimjoar/Documents/Projects/ES/script/rails:10:in `require'
  from /Users/kimjoar/Documents/Projects/ES/script/rails:10:in `<main>'

This doesn't happen when I instead use gem "rails", "3.0.0.beta".

Might be something to check out.

@josevalim
Copy link
Contributor

Bug in Rails 3. There is already ticket for it.

@kimjoar
Copy link
Contributor Author

kimjoar commented Mar 10, 2010

Ah, thanks for the quick answer!

@parasew
Copy link

parasew commented Mar 11, 2010

josevalim, can you point us to the ticket #number ? thanks

@josevalim
Copy link
Contributor

Don't worry with the ticket number, it was already fixed on Devise master. :)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants