title: NameError: uninitialized constant ActionController::Dispatcher
body: <p>Found a similar post <a href="https://stackoverflow.com/questions/6576991/cucumber-rails-3-1-uninitialized-constant-actioncontrollerdispatcher-nameerro">here</a> but I am running a Mac so the first solution does not exactly apply and the second didn't work for me.  </p>
  
  <p>Running Mac OS 10.7.2, Xcode 4.2.1, rvm 1.10.1 using ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]</p>
  
  <p>I believe the issue to due with rvm, however I do not know how to fix it</p>
  
  <pre><code>$ rails new dispatch_me
  $ rails generate controller demo index 
  $ rails console
  Loading development environment (Rails 3.2.0.rc2)
  1.9.3-p0 :001 &gt; env = {}
   =&gt; {} 
  1.9.3-p0 :002 &gt; env['REQUEST_METHOD'] = 'GET'
   =&gt; "GET" 
  1.9.3-p0 :003 &gt; env['PATH_INFO'] = '/demo/index'
   =&gt; "/demo/index" 
  1.9.3-p0 :004 &gt; env['rack.input'] = StringIO.new
   =&gt; #&lt;StringIO:0x007f946db0ece0&gt; 
  1.9.3-p0 :005 &gt; ActionController::Dispatcher.new.call(env).last.body
  NameError: uninitialized constant ActionController::Dispatcher
  from (irb):5
  from /Users/rudolph9/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0.rc2/lib/rails/commands/console.rb:47:in `start'
  from /Users/rudolph9/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0.rc2/lib/rails/commands/console.rb:8:in `start'
  from /Users/rudolph9/.rvm/gems/ruby-1.9.3-p0/gems/railties-    3.2.0.rc2/lib/rails/commands.rb:41:in `&lt;top (required)&gt;'
  from script/rails:6:in `require'
  from script/rails:6:in `&lt;main&gt;'
  1.9.3-p0 :006 &gt; 
  </code></pre>
  
  <p>I am following with the <a href="http://tr3w.com/" rel="nofollow noreferrer">The Rails 3 Way</a> </p>
  
  <p>Again, I believe the issue to due with rvm, however I do not know how to fix it?</p>
  
  <p>UPDATE:
  Maybe it doesn't have something to do with rvm, running native Ruby 1.8.7 and Rails 3.1.3 I run into the same issue:</p>
  
  <pre><code>&gt;&gt; ActionController::Dispatcher.new.call(env).last.body
  NameError: uninitialized constant ActionController::Dispatcher
      from (irb):6
  </code></pre>