title: Can I schedule controller methods in rails using rufus-scheduler?
body: <p>Could I schedule the index method from the controller posted below? If so, how would I go about doing that?</p>
  
  <pre><code>class WelcomeController &lt; ApplicationController
    def index
     if Number.find(1)
      @number = Number.first
      @number.value += 1
      @number.save
     else 
      @number = Number.new    
      @number.value = 0
     end
    end
  end
  </code></pre>