title: how to annotate rails models in rails version 3.2.1
body: <p>Im trying to follow some online tutorial on annotating my models in rails. However, it seems all the tutorials are either talking about outdated annotation versions or incorrect installations its a mess.</p>
  
  <p>So far Ive tried the following</p>
  
  <p>1) Added this in the Gemfile</p>
  
  <pre><code>gem 'annotate', '2.4.0'
  </code></pre>
  
  <p>2) Then the command:</p>
  
  <pre><code>bundle install
  </code></pre>
  
  <p>3) I then saw that the annotation gem was installed and showing up on the command</p>
  
  <pre><code>bundle show
  </code></pre>
  
  <p>4) lastly in order to annotate my models I used the command</p>
  
  <pre><code>bundle exec annotate --position before
  </code></pre>
  
  <p>At this point I was expecting my models to be annotated however what I got was the following error message:</p>
  
  <pre><code>/Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.1/lib/active_record/railties/databases.rake:4:in `&lt;top (required)&gt;': undefined method `namespace' for main:Object (NoMethodError)
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.1/lib/active_record/railtie.rb:33:in `load'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.1/lib/active_record/railtie.rb:33:in `block in &lt;class:Railtie&gt;'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/lib/rails/railtie.rb:184:in `instance_exec'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/lib/rails/railtie.rb:184:in `block in load_tasks'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/lib/rails/railtie.rb:184:in `each'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/lib/rails/railtie.rb:184:in `load_tasks'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/lib/rails/engine.rb:423:in `block in load_tasks'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/lib/rails/application/railties.rb:8:in `each'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/lib/rails/application/railties.rb:8:in `all'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/lib/rails/engine.rb:423:in `load_tasks'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/lib/rails/application.rb:145:in `load_tasks'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
  from Rakefile:7:in `&lt;top (required)&gt;'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/annotate-2.4.0/lib/annotate.rb:17:in `load'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/annotate-2.4.0/lib/annotate.rb:17:in `load_tasks'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/gems/annotate-2.4.0/bin/annotate:66:in `&lt;top (required)&gt;'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/bin/annotate:19:in `load'
  from /Users/AM/.rvm/gems/ruby-1.9.2-p290/bin/annotate:19:in `&lt;main&gt;'
  </code></pre>
  
  <p>So feeling completely stumped.</p>
  
  <p>Any ideas on how to proceed?</p>
  
  <p>Thanks</p>