start new:
tmux
start new with session name:
tmux new -s myname
gem 'resque', '>= 1.10.0' | |
gem 'heroku' # You will need the heroku gem for this too. |
Before do | |
module Resque | |
def self.enqueue(klass, *args) | |
klass.perform(*args) | |
end | |
end | |
end |
-----> Heroku receiving push | |
-----> Ruby/Rails app detected | |
-----> Detected Rails is not set to serve static_assets | |
Installing rails3_serve_static_assets... done | |
-----> Configure Rails 3 to disable x-sendfile | |
Installing rails3_disable_x_sendfile... done | |
-----> Configure Rails to log to stdout | |
Installing rails_log_stdout... done | |
-----> Gemfile detected, running Bundler version 1.0.7 | |
Unresolved dependencies detected; Installing... |
$('#products').append('<%= j render(@products) %>'); | |
<% if @products.next_page %> | |
$('.pagination').replaceWith('<%= j will_paginate(@products) %>'); | |
<% else %> | |
$('.pagination').remove(); | |
<% end %> |