title: Getting routes.rb root to work in Rails
body: <p>Started working with RoR again! I'm having trouble getting my config/routes.rb file to perform. I'm getting "uninitialized constant ApplicationsController" using RubyMine.</p>
  
  <p>Here's what I have changed in my routes.rb after trying to search things down:</p>
  
  <pre><code>resources :applications  
  root :to =&gt; 'applications#index'
  
  application_controller.rb has:
    class ApplicationController &lt; ActionController::Base
    protect_from_forgery
  end
  </code></pre>
  
  <p>I've ran my rake routes:</p>
  
  <pre><code>    applications GET    /applications(.:format)          applications#index
                   POST   /applications(.:format)          applications#create
   new_application GET    /applications/new(.:format)      applications#new
  edit_application GET    /applications/:id/edit(.:format) applications#edit
       application GET    /applications/:id(.:format)      applications#show
                   PUT    /applications/:id(.:format)      applications#update
                   DELETE /applications/:id(.:format)      applications#destroy
              root        /                                applications#index
  </code></pre>
  
  <p><code>rake rails:update</code> and all changes were approved except altering routes.rb
  Heres what its kicks out Rubymine side:</p>
  
  <pre><code>Started GET "/" for 127.0.0.1 at 2012-11-11 02:50:27 -0800
  Connecting to database specified by database.yml
  
  ActionController::RoutingError (uninitialized constant ApplicationsController):
  </code></pre>
  
  <p>Thanks for the help!</p>