title: Rails 3 HABTM one-liner
body: <p>I need a one-liner to generate a has_and_belongs_to_many join table or else I will go back to Django for its simpler many-to-many constructs.</p>
  
  <p><strong>rails 3 generate model article_tags</strong> [..]</p>
  
  <pre><code>Models
  
  # article.rb
  has_many :articles_tags
  has_many :tags, :through =&gt; :articles_tags
  
  # tag.rb
  has_many :articles_tags
  has_many :articles, :through =&gt; :articles_tags
  
  # article_tag.rb
  belongs_to :tag
  belongs_to :article
  </code></pre>