Skip to content

Instantly share code, notes, and snippets.

@MichaelEM3
MichaelEM3 / spec_config.md
Last active August 29, 2015 14:26 — forked from seansellek/spec_config.md
RSpec config instructions

Rspec Configuration

  1. add this to your Gemfile:
gem 'rspec-rails'
gem 'shoulda-matchers', require: false
gem 'capybara'
  1. run bundle
@MichaelEM3
MichaelEM3 / index.md
Last active August 29, 2015 14:25 — forked from rstacruz/index.md

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one