Skip to content

Instantly share code, notes, and snippets.

@willawill
willawill / index.md
Last active Aug 31, 2015 — forked from rstacruz/index.md
Rails models cheatsheet
View index.md

Rails Models

Generating models

$ rails g model User

Associations

belongs_to
has_one
@willawill
willawill / capybara.md
Last active Aug 28, 2015 — forked from steveclarke/capybara.md
RSpec Matchers
View capybara.md

Capybara

save_and_open_page

Matchers

have_button(locator)
@willawill
willawill / lockit.sh
Created Aug 21, 2012 — forked from quad/lockit.sh
Achtung: a not very nice hotdog
View lockit.sh
#!/bin/sh
#
# We have a few repeat customers here at the TWU 27 hotdog shack.
#
# They've decided it's FUN to visit our stand.
#
# So, we've cooked up something a little special for our valued customers.
set -e