Skip to content

Instantly share code, notes, and snippets.

@samgranieri
Created December 16, 2008 23:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samgranieri/36865 to your computer and use it in GitHub Desktop.
Save samgranieri/36865 to your computer and use it in GitHub Desktop.
# Allow the metal piece to run in isolation
require(File.dirname(__FILE__) + "/../../config/environment") unless defined?(Rails)
class RackRoll < Rails::Rack::Metal
def call(env)
[ 302, {'Location'=> 'http://www.youtube.com/watch?v=oHg5SJYRHA0' }, [] ]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment