Skip to content

Instantly share code, notes, and snippets.

@nowaterlili
nowaterlili / fakeout.rake
Created April 29, 2012 03:46 — forked from matthutchinson/fakeout.rake
fakeout.rake - a simple/configurable rake task that generates some random fake data for the app (using faker) at various sizes
# a simple/configurable rake task that generates some random fake data for the app (using faker) at various sizes
# Either add this to your Gemfile's development, test group or both, or install the gems and require them before running this
# gem 'ffaker'
# gem 'randumb'
#
class Fakeout
# START Customizing
# e.g. this example fakes out, Users, Questions
@nowaterlili
nowaterlili / config.ru
Created February 11, 2012 06:18
config.ru for redirecting www to non www
require "rack-rewrite"
ENV['RACK_ENV'] ||= 'development'
if ENV['RACK_ENV'] == 'development'
ENV['SITE_URL'] = 'yoursite.local:3000'
else
ENV['SITE_URL'] = 'yoursite.com'
end