Fixed RAILS_ROOT issue. Updated Gemfile.