For examples from book by M. Hartl [Rails 4]