I’m building an app in rails using Nokogiri … I used puts documents.css(“._Ak cite”).length and I get the exact length I want but when I tried the id part of the of thisputs documents.css(“div#mbEnd > cite”).length I didn’t get the exact, makes 0 length.
I don’t know why nokogiri not recognizing the tag.
I really don’t why I can’t get the data if I used id because when I tried the class it will gives the exact data. Is there any ways that can I used id to fetch the data?