App from rails 4 book-tutorial