Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 359 Bytes
require "bundler/setup"
Bundler.require(:default)
module Eat
@queue = :food
def self.perform(food)
puts "Ate #{food}!"
end
end
get '/' do
"<a href='/eat/mango'>eat something</a>
<a href='/resque'>resque</a>"
end
get '/eat/:food' do
Resque.enqueue(Eat, params['food'])
"Put #{params['food']} in fridge to eat later."
end