Skip to content

Instantly share code, notes, and snippets.

View rmilushev's full-sized avatar

Rumen Milushev rmilushev

View GitHub Profile
@rmilushev
rmilushev / gist:4976579
Created February 18, 2013 10:50
HAML nesting for a clickable region (image and a coule of labels) :
.oneitem.round.shady
= link_to(imot_path(imot)) do
.upperone
.upcontent
%h4= imot.name
%br
= image_tag(imot.image_url(:thumb)) if imot.image?
.lowerone.round
= imot.category.name if imot.category
%br
############## First app
root = "/home/deployer/apps/gopo/current"
working_directory root
pid "#{root}/tmp/pids/unicorngopo.pid"
stderr_path "#{root}/log/unicorngopo.log"
stdout_path "#{root}/log/unicorngopo.log"
listen "/tmp/unicorn.gopo.sock"