use nokogiri 1.5.9 for it to work on 1.8.7