title: Ruby-on-Rails Whenever by Javan working step
body: <p>I follow the railscast whenever by javan tutorial but I seems to unable to make it happen.
  Is there a MUST to install capistrano to have cron job? it is because I don't have the deploy.rb. I list down the steps in details. If there any steps I had missed to cause my cron not working? I always get a report say I got a new mail but I didnt send any email operation.</p>
  
  <p>Step1:</p>
  
  <pre><code>wheneverize .
  </code></pre>
  
  <p>====>   schedule.rb in config folder</p>
  
  <p>Step 2:
  [Scheduler.rb]  </p>
  
  <pre><code>every '1 * * * *' do
     runner 'Company.count'
  end
  </code></pre>
  
  <p>Step 3: [what is "store"?]</p>
  
  <pre><code>whenever --update-crontab store
  </code></pre>
  
  <p>Step 4: [config/deploy.rb]&lt;-- I don't have deploy files so I create it myself.</p>
  
  <pre><code>after "deploy:symlink", "deploy:update_crontab"  
  
  namespace :deploy do  
    desc "Update the crontab file"  
    task :update_crontab, :roles =&gt; :db do  
       run "cd #{release_path} &amp;&amp; whenever --update-crontab #{application}"  
    end  
  end 
  </code></pre>
  
  <p>Step 5 :</p>
  
  <pre><code>whenever --update-crontab store
  
  crontab -l
  </code></pre>
  
  <p>What have I missed? why it didnt work? Please enlighten me step by step because I am newbie in ROR.. thanks.</p>