title: uninitialized constant LoginController in Ruby.
body: <p>I am newbie in Ruby. I installed by following this tutorial: <code>http://udooz.net/blog/2011/02/facebook-app-using-rails-koala/</code></p>
  
  <p>Now, when I do this: rails generate controller </p>
  
  <p>rails generate controller home index</p>
  
  <p>I get this error:</p>
  
  <pre><code>/home/hiccup-pro/Documents/qstack/config/environment.rb:8:in `&lt;top (required)&gt;': undefined local variable or method `config' for main:Object (NameError)
  from /home/hiccup-pro/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.3/lib/rails/application.rb:103:in `require'
  from /home/hiccup-pro/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.3/lib/rails/application.rb:103:in `require_environment!'
  from /home/hiccup-pro/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.3/lib/rails/commands.rb:25:in `&lt;top (required)&gt;'
  from script/rails:6:in `require'
  from script/rails:6:in `&lt;main&gt;'
  </code></pre>
  
  <p>I fixed it. Atleast that bug, but now I've a different bug and that is: uninitialized constant LoginController. I googled a bit and found out that I should not mention config.* in the environment.rb. 
  Anyway, 
  this is my environment.rb</p>
  
  <pre><code># Load the rails application
  require File.expand_path('../application', __FILE__)
  
  # Initialize the rails application
  Qack::Application.initialize!
  config.action_controller.allow_forgery_protection = false
  </code></pre>
  
  <p>So, why do I get this <code>uninitialized constant LoginController</code> error?</p>