title: How can I create a new object in cron in rails by referencing controller and passing variables?
body: <p>Currently, I have a manual form-submission way of creating an object which fires off stuff in the create action.</p>
  
  <p>I access this form this way:</p>
  
  <p><a href="http://localhost:3000/contact_faxes/new?contact=1&amp;fax=7&amp;status=done" rel="nofollow">http://localhost:3000/contact_faxes/new?contact=1&amp;fax=7&amp;status=done</a></p>
  
  <p>This takes me to a form, and executes stuff in the create action.  As you can see, I take parameters and change them, and pass them as if it were a form submission.</p>
  
  <p>But I now want to enable this same process through a cron job.</p>
  
  <p>One way I did it was to type all the code back into the cron job, not using the methods new/create at all, which didn't seem like the way to go.</p>
  
  <p><strong>How would I be able to leverage the existing methods using the cron job?</strong></p>
  
  <p>Here are the new and create methods:</p>
  
  <p><a href="https://gist.github.com/746686" rel="nofollow">https://gist.github.com/746686</a></p>