Skip to content

Instantly share code, notes, and snippets.

@renz45
renz45 / config.ru
Created February 29, 2012 17:52
Rails Lightweight Stack. Most of this is detailed on Crafting Rails Applications - http://pragprog.com/book/jvrails/crafting-rails-applications
# Run this file with `RAILS_ENV=production rackup -p 3000 -s thin`
# Be sure to have rails and thin installed.
require "rubygems"
require "rails"
# Let's load only action controller. If you want
# to use active record, just require it as well.
require "action_controller/railtie"
class MyApp < Rails::Application
@renz45
renz45 / params.rb
Created January 23, 2012 14:46 — forked from codeschool-courses/params.rb
Rails for Zombies 2 - Challenge 3-7
# Here is the parameters hash sent into the controller
params = { zombie_id: 2, id: 1 }
@renz45
renz45 / cleverButton.sass
Created August 6, 2011 23:03 — forked from olivierlacan/cleverButton.css.sass
cleverButton Sass mixin for Compass
// original cleverButtons by Olivier Lacan & Andrew Smith (http://clevercode.net)
// modified by Adam Rensel
//edge can be: glow, stark, 3d, 3dLight
//border can be: solid, twoTone
=cleverButton($radius : 5px, $textcolor : white, $from : #aaa, $to : #666, $edge : "3dLight", $border : "solid")
// adjustable settings for padding
padding: 0.3em .9em 0.3em