title: Rails: pass has_many or belongs_to attribute in 'generate' command
body: <p>I'm trying to make a scaffold but want to pass a has_many attribute to the generate command as follows:</p>
  
  <pre><code>rails generate scaffold grade name:string {has_many :sections}
  </code></pre>
  
  <p>This generates the broken model:</p>
  
  <pre><code>class Grade &lt; ActiveRecord::Base
    attr_accessible :, :name, :{has_many
  end
  </code></pre>
  
  <p>instead of what i need:</p>
  
  <pre><code>class Grade &lt; ActiveRecord::Base
    attr_accessible :name
    has_many :sections
  end
  </code></pre>
  
  <p>How can i pass a relationship attribute to the generate command?</p>