title: uninitialized constant ActionController
body: <p>Backstory: Some friends and I were working on an app and wanted to select multiple items for processing on another page. Before we found <a href="http://railscasts.com/episodes/165-edit-multiple" rel="nofollow">RailsCast #165</a>, I created a branch and added scaffold for a table with three checkboxes on it just to see what the generated code looked like. Having found the right answer in RC165, I deleted all the code, and the migration, with the intention of abandoning all that work.</p>
  
  <p>Alas, I can't seem to get rid of it as references to it prevent me from doing anything on any branch at all. When I "rake db:migrate" or "rails s" or anything, I get ...</p>
  
  <pre><code>uninitialized constant ActionController::MimeResponds::ChecksHelper (NameError)
  </code></pre>
  
  <p>... even though the character string "Checks" does appear anywhere in my project directory. I have gone so far as to:</p>
  
  <ol>
  <li>Rename the directory and clone a new project from github (Note: my experiment was never
  commited even at the local file system level, much less pushed up).</li>
  <li>Blow away the Postgress development and test databases</li>
  </ol>
  
  <p>I am at a complete loss to understand how and where Rails is "remembering" my brief experiment and am out of ideas short of blowing away Ruby, Rails, and rbenv, i.e. scraping the machine to bedrock - yuck.</p>
  
  <p>I can't believe that simply backing away from some ill-considered code should be this hard.</p>
  
  <p>Any suggestions on how to solve this or avoid it in the future would be most welcome.</p>
  
  <p>-- Vern</p>
  
  <p>Stack traces follow:</p>
  
  <pre><code>Verns-MacBook-Pro:Portfolio-Project-1-User-Stories vern$ git branch
  * master
  Verns-MacBook-Pro:Portfolio-Project-1-User-Stories vern$ rails s
  =&gt; Booting WEBrick
  =&gt; Rails 3.2.11 application starting in development on http://0.0.0.0:3000
  =&gt; Call with -d to detach
  =&gt; Ctrl-C to shutdown server
  Exiting
  /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/mime_responds.rb:11:in `&lt;module:MimeResponds&gt;': uninitialized constant ActionController::MimeResponds::ChecksHelper (NameError)
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/mime_responds.rb:6:in `&lt;module:ActionController&gt;'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/mime_responds.rb:5:in `&lt;top (required)&gt;'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/base.rb:196:in `&lt;class:Base&gt;'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/base.rb:171:in `&lt;module:ActionController&gt;'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_controller/base.rb:3:in `&lt;top (required)&gt;'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/sorcery-0.8.1/lib/sorcery/engine.rb:11:in `block in &lt;class:Engine&gt;'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `instance_exec'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `run'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:55:in `block in run_initializers'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `each'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `run_initializers'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/application.rb:136:in `initialize!'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `method_missing'
      from /Users/vern/RoR/Portfolio-Project-1-User-Stories/config/environment.rb:5:in `&lt;top (required)&gt;'
      from /Users/vern/RoR/Portfolio-Project-1-User-Stories/config.ru:3:in `block in &lt;main&gt;'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
      from /Users/vern/RoR/Portfolio-Project-1-User-Stories/config.ru:in `new'
      from /Users/vern/RoR/Portfolio-Project-1-User-Stories/config.ru:in `&lt;main&gt;'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/commands/server.rb:46:in `app'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/commands/server.rb:70:in `start'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/commands.rb:55:in `block in &lt;top (required)&gt;'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/commands.rb:50:in `tap'
      from /Users/vern/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/commands.rb:50:in `&lt;top (required)&gt;'
      from script/rails:6:in `require'
      from script/rails:6:in `&lt;main&gt;'
  Verns-MacBook-Pro:Portfolio-Project-1-User-Stories vern$ rake db:migrate
  rake aborted!
  You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3. Using bundle exec may solve this.
  /Users/vern/RoR/Portfolio-Project-1-User-Stories/config/boot.rb:6:in `&lt;top (required)&gt;'
  /Users/vern/RoR/Portfolio-Project-1-User-Stories/config/application.rb:1:in `&lt;top (required)&gt;'
  /Users/vern/RoR/Portfolio-Project-1-User-Stories/Rakefile:5:in `&lt;top (required)&gt;'
  (See full trace by running task with --trace)
  Verns-MacBook-Pro:Portfolio-Project-1-User-Stories vern$ bundle exec rake db:migrate
  rake aborted!
  uninitialized constant ActionController::MimeResponds::ChecksHelper
  /Users/vern/RoR/Portfolio-Project-1-User-Stories/config/environment.rb:5:in `&lt;top (required)&gt;'
  Tasks: TOP =&gt; db:migrate =&gt; environment
  (See full trace by running task with --trace)
  </code></pre>