title: Can a rake task be triggered via a rails interface?
body: <p>Or am I thinking about this wrong?  Basically, I want to be able to upload a zip file to a model, and after uploading I want to run a bunch of processes on it.  It would be nice to be able to do this from the back end/console, as well as have a way of triggering the actions via the rails front-end interface.  </p>
  
  <p>The idea here:</p>
  
  <p>Gallery has collection.zip</p>
  
  <p>Gallery has many children :item</p>
  
  <p>collection.zip has information for each Item</p>
  
  <p>I want to trigger a batch gallery.items.build process that will extract the information from the zip and use it to create the new items.  I thought about using a Paperclip::Processor for this task, but I have yet to find a lot of truly useful or comprehensive documentation on how that would work, and experimentation has only led to frustration and confusion.  I saw some people use rake tasks for this sort of thing, but I really don't want to have to use the console to do perform the task, and would really just like to have a button that says "Generate Gallery" that will run all the necessary tasks.</p>
  
  <p>So, is there a way of doing this?  Would this be considered bad practice?  If so, is there another way that I should be approaching this problem?</p>