gem 'resque', :require => 'resque/server'
get '/товар/:id', :to => 'goods#show', :as => :good
class MyJob
@queue = :my_job
def self.perform
g = Goods.where(:id => 1).first
good_path(g),
end
end
undefined local variable or method `good_path' for MyJob:Class
include ActionDispatch::Routing::UrlFor
include ActionController::PolymorphicRoutes
include Rails.application.routes.url_helpers
default_url_options[:host] = 'example.com'