title: Invoke rake task from ActiveRecord observer
body: <p>Can I do the following?</p>
  
  <pre><code>def ModelObserver &lt; ActiveRecord
  
     def after_save
       Rake::Task[name].invoke
     end
  
  end
  </code></pre>
  
  <p>At the moment, this returns the following error:</p>
  
  <pre><code>Don't know how to build task 'name'
  </code></pre>
  
  <p>Any idea?</p>