From book: Agile Web Dev with Rails 4