Rails 4 tutorial sample