Skip to content

Instantly share code, notes, and snippets.

View jayfallon's full-sized avatar
🎯
Focusing

Jay Fallon jayfallon

🎯
Focusing
View GitHub Profile
@jayfallon
jayfallon / helper.rb
Created November 17, 2010 16:29 — forked from nex3/helper.rb
def conditional_body
haml_concat "<!--[if !IE]>--><body><!--<![endif]-->"
haml_concat "<!--[if IE 6]><body class='ie ie6'><![endif]-->"
haml_concat "<!--[if IE 7]><body class='ie ie7'><![endif]-->"
haml_concat "<!--[if IE 8]><body class='ie ie8'><![endif]-->"
tab_up
yield
tab_down
haml_concat "</body>"
end
@jayfallon
jayfallon / gist:307614
Created February 18, 2010 12:32 — forked from DAddYE/gist:307591
# Install Padrino
gem install padrino
# Put this in your shell for create in few seconds a Padrino Project with Padrino Admin
padrino-gen project foo -d activerecord; cd foo; bundle install; padrino-gen admin; padrino-gen admin_uploader; bundle install; padrino rake ar:migrate; padrino rake seed; padrino start