Skip to content

Instantly share code, notes, and snippets.

View tienyuan's full-sized avatar

Tien tienyuan

  • Los Angeles, CA
View GitHub Profile
@tienyuan
tienyuan / Gemfile
Last active August 29, 2015 14:13 — forked from eliotsykes/Gemfile
# Add poltergeist gem to Gemfile, in :test group,
# then run `bundle` to install
group :test do
...
gem 'poltergeist'
...
end
require 'rails_helper'
RSpec.describe TodosController, :type => :controller do
context "GET index" do
#context "POST create" do
#context "GET show" do
#context "PATCH update" do (or PUT update)
#context "DELETE destroy" do
#context "GET new" do

SSH to the vagrant OS command line.

Terminal $> vagrant ssh

Login to postgres database as vagrant user with the psql client:

vagrant@rails-dev-box: psql -U vagrant postgres