Skip to content

Instantly share code, notes, and snippets.

View georgedrummond's full-sized avatar
:fishsticks:

George Drummond georgedrummond

:fishsticks:
  • GitHub Staff
  • Philadelphia
View GitHub Profile
127.0.0.1 signup.mydomain.dev test1.mydomain.dev test2.mydomain.dev
Myapp::Application.routes.draw do
# signup.host.com
constraints :subdomain => "signup" do
resources :accounts
match "signup" => "accounts#new"
root :to => "accounts#new"
end
# Catch all subdomains except "signup.host.com"
[remote "all"]
url = git@heroku.com:myapp.git
url = git@github.com:georgedrummond/myapp.git
@georgedrummond
georgedrummond / gist:985357
Created May 22, 2011 10:45
install heroku jammit
heroku plugins:install git@github.com:kylejginavan/heroku_jammit.git
@georgedrummond
georgedrummond / gist:985352
Created May 22, 2011 10:42
serve static assets rails 3
# config/environments/production.rb
config.serve_static_assets = true
@georgedrummond
georgedrummond / gist:985346
Created May 22, 2011 10:39
install jammit
# Add to your Gemfile
gem 'jammit'
@georgedrummond
georgedrummond / currencies.json
Created May 8, 2011 23:59
accountsapp api - currencies
[
{
"currency":{
"name":"British Pounds",
"code":"GBP",
"id":1,
"unit":"\u00a3"
}
},
{
*
:padding 0
:margin 0
body
:font-family arial
:font-size 13px
:color #333
.container
SITE_ROOT = "#{File.dirname(__FILE__)}"
configuration.sass_options[:style] = :compressed
configuration.sass_options[:load_paths] = [SITE_ROOT + "/src/sass"]
configuration.use_extensions_for_page_links = false