This document should be named 40.gemfile and it should have Rails 4.0.5 version in it because of security issues.