title: How to pass Arguments and use those in (resque-status) Resque::JobWithStatus?
body: <p>my resque worker class is:</p>
  
  <pre><code>require 'resque'
  require 'resque/job_with_status'
  
  class PatstatResqueWorker &lt; Resque::JobWithStatus
    @queue = :my_worker_q
    def self.perform(query, label)
      puts "query:"
      puts options['query']
      puts "label:"
      puts options['label']
    end
  end
  </code></pre>
  
  <p>and my controller part, where I call this resque is...</p>
  
  <pre><code>class MyController &lt; ApplicationController
    def resque
      job_id = PatstatResqueWorker.create(:query =&gt; @query, :label =&gt; "yes")
      status = Resque::Plugins::Status::Hash.get(job_id)
    end
  end
  </code></pre>
  
  <p>and its not working :(
  if i remove the parameter from resque function it says <strong>Wrong number of arguments (2 for 0)</strong> and if i add the parameter section back it says <strong>options not defined</strong> :(
  Could you help?</p>