Update rails versions.
Remove nokogiri gem.
Clean up gemfile.