PDA

View Full Version : undefined method 'middleware' following Tutorial



Chromag
7 Oct 2009, 6:26 AM
I'm currently learning to use ExtJS and going through the tutorial here:
http://www.extjs.com/blog/2009/09/30/ext-js-on-rails-a-comprehensivetutorial/

Step 7 includes information about using Direct. I've installed both gems (rails-extjs-direct, merb-extjs-direct) and included the following configuration in environment.rb as mentioned in the tutorial:


config.gem "extjs-mvc"
config.gem "rails-extjs-direct"
config.middleware.use "Rails::ExtJS::Direct::RemotingProvider", "/direct"When I do this, I get the following error:


config/environment.rb:78: undefined method `middleware' for #<Rails::Configuration:0xb7ea4324> (NoMethodError)Any idea's of what's causing this?

Thanks.

christocracy
9 Oct 2009, 7:20 AM
ngProvider", "/direct"[/CODE]When I do this, I get the following error:


config/environment.rb:78: undefined method `middleware' for #<Rails::Configuration:0xb7ea4324> (NoMethodError)Any idea's of what's causing this?

Thanks.

What version of Rails?



gem list


Do you see Rack installed?