Added rails factor to gemfile