title: How to invoke generators from code?
body: <p>I wrote my own generator, from console its launched like this</p>
  
  <pre><code>rails generate ead_document TechnicalOpinion --document_type_id=1
  </code></pre>
  
  <p>It creates model and migration. I want to execute generator from my controller without using ruby system command. Is there any way to do that?</p>