-
rails new <app_name>
-
Update Gemfile to include gems for testing
- e.g. RSpec, FactoryGirl, Capybara
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
var foo = new Object(); | |
var bar = new Object(); | |
var map = new Object(); | |
map[foo] = "foo"; // --> map["[Object object]"] = "foo"; | |
map[bar] = "bar"; // --> map["[Object object]"] = "bar"; | |
// NOTE: second mapping REPLACES first mapping! | |
alert(map[foo]); // --> alert(map["[Object object]"]); | |
// and since map["[Object object]"] = "bar", |
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
require "minitest/autorun" | |
require "mocha/setup" | |
require 'simplecov' | |
require 'capybara/dsl' | |
require 'capybara/rails' | |
SimpleCov.start | |
module TestHelper | |
include Capybara::DSL |
This is a quick tutorial explaining how to get a static website hosted on Heroku.
Why do this?
Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.
A brief introduction to the Ruby Twitter API, providing code and context.
Note: this tutorial is written using Github Flavored Markdown (GFM) for clarity (and usefulness). It was originally authored by @sylvaincarle and has been edited and updated by @wh1tney (7/26/2014).
- Ruby is installed and functional
- The twitter gem is ~ version 5.11.0