This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* | |
:padding 0 | |
:margin 0 | |
body | |
:font-family arial | |
:font-size 13px | |
:color #333 | |
.container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"currency":{ | |
"name":"British Pounds", | |
"code":"GBP", | |
"id":1, | |
"unit":"\u00a3" | |
} | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add to your Gemfile | |
gem 'jammit' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/environments/production.rb | |
config.serve_static_assets = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku plugins:install git@github.com:kylejginavan/heroku_jammit.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[remote "all"] | |
url = git@heroku.com:myapp.git | |
url = git@github.com:georgedrummond/myapp.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1 signup.mydomain.dev test1.mydomain.dev test2.mydomain.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2012-09-25T22:44:14+00:00 app[web.1]: Started POST "/random_acts_of_kindness/2/received_kindnesses" for 81.157.45.246 at 2012-09-25 22:44:14 +0000 | |
2012-09-25T22:44:14+00:00 app[web.1]: {"kindness_id"=>"37", "image"=>#<ActionDispatch::Http::UploadedFile:0x0000000719e6d0 @original_filename="kakow.gif", @content_type="image/gif", @headers="Content-Disposition: form-data; name=\"received_kindness[image]\"; filename=\"kakow.gif\"\r\nContent-Type: image/gif\r\n", @tempfile=#<File:/tmp/RackMultipart20120925-10-pshr7i>>, "how_receiver_feel"=>"", "how_receiver_will_spend"=>""} | |
2012-09-25T22:44:17+00:00 app[web.1]: #<Kindness id: 37, lat: #<BigDecimal:70595e0,'0.5149635283 260691E2',27(27)>, lng: #<BigDecimal:70594a0,'-0.6302861328 129E-1',18(27)>, location: nil, giver_id: 38, rak_blog_id: 2, receiver_id: 49, image: "", how_receiver_will_spend: "", how_receiver_feel: "", updated_at: "2012-09-25 18:37:38", address: "4 Collett Rd, Bermondsey, London Borough of Southwa...", flagged: false, flagged_comment: nil, giver_comm |
OlderNewer