Re: [Rails] nokogiri parse html find

2018-10-08 Thread fugee ohu
On Monday, October 8, 2018 at 9:25:13 AM UTC-4, Colin Law wrote: > > Why have you posted the same question twice? > > On Mon, 8 Oct 2018 at 12:13, fugee ohu > > wrote: > >> This code isn't right I'm trying to find >> pry(main)> rows=list.css("li .some-class") >> >> list above is a valid object

Re: [Rails] nokogiri parse html find

2018-10-08 Thread Colin Law
Why have you posted the same question twice? On Mon, 8 Oct 2018 at 12:13, fugee ohu wrote: > This code isn't right I'm trying to find > pry(main)> rows=list.css("li .some-class") > > list above is a valid object already created on a preceeding line > > -- > You received this message because yo

[Rails] nokogiri parse html find

2018-10-08 Thread fugee ohu
This code isn't right I'm trying to find pry(main)> rows=list.css("li .some-class") list above is a valid object already created on a preceeding line -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and st

[Rails] Nokogiri::HTML.parse(browser.html)

2018-07-20 Thread fugee ohu
When I run this in rails console it stops and returns a colon prompt -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegr

[Rails] Nokogiri id attribute not functioning

2015-06-21 Thread Edsil Basadre
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 this* puts documents.css("div#mbEnd > cite").length *I didn't get the exact, makes 0 length. I don't know why nokogiri not rec

Re: [Rails] NokoGiri / DevKit Issue?

2015-03-25 Thread Colin Law
On 25 March 2015 at 01:20, wrote: > I was wondering what you recommended for Rails as it relates to working on > Windows / present configuration recommendations for Windows? Use the older > version for now? Run it without DevKit / SQLite, etc.? See the below: My recommendation would be to not wo

[Rails] NokoGiri / DevKit Issue?

2015-03-24 Thread write . tman
I was wondering what you recommended for Rails as it relates to working on Windows / present configuration recommendations for Windows? Use the older version for now? Run it without DevKit / SQLite, etc.? See the below: http://stackoverflow.com/questions/2806/require-cannot-load-such-file-no

[Rails] nokogiri missing libiconv error. Chapter 3 of RoR book tutorial

2014-06-26 Thread bradford li
I posted a question on stackoverflow but it hasnt been much help: http://stackoverflow.com/questions/24441580/cannot-bundle-install-nokogiri-error-ror-tutorial?noredirect=1#comment3782_24441580 I also followed the homebrew instructions to get libiconv. I have it downloaded and installed but

[Rails] Nokogiri::XML::AttributeDecl methods output understanding

2013-06-09 Thread Love U Ruby
Hi, Today morning my target is going through the ` Nokogiri::XML::AttributeDecl` methods. So I wrote some simple codes to understand these methods: require 'nokogiri' doc = Nokogiri::XML::Document.new # => # attdcl = Nokogiri::XML::AttributeDecl.new('bar',doc) # => #"> attdcl.enumeration # => [

[Rails] Nokogiri::XML methods example

2013-06-03 Thread Love U Ruby
Hi, I am not able to find out a simple example to find out the how the method works: > Nokogiri::XML::EntityReference::new (http://nokogiri.org/Nokogiri/XML/EntityReference.html#method-c-new) > Nokogiri::XML::Document#canonicalize (http://nokogiri.org/Nokogiri/XML/Document.html#method-i-canonic

Re: [Rails] Nokogiri#css("input:disabled") not working

2013-06-01 Thread Hassan Schroeder
On Sat, Jun 1, 2013 at 12:33 AM, Love U Ruby wrote: > p doc.css("input:disabled").count > Why the errors are throwing up? What makes you think that's valid syntax? -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan -- You

[Rails] Nokogiri#css("input:disabled") not working

2013-06-01 Thread Love U Ruby
doc = Nokogiri::HTML::Document.parse(<<-eohtml) http://code.jquery.com/jquery-1.9.1.js";> eohtml p doc.css("input:disabled").count # >> 2 # ~> /home/kirti/.rvm/gems/ruby-2.0.0-p0/gems/nokogiri-1.5.9/lib/nokogiri/xml/node.rb:159:in `evaluate': xmlXPathCompOpEval: function disabled no

[Rails] Nokogiri XSD validation issues

2011-08-27 Thread loganathan sellappa
Hi All, I am using nokogiri gem(1.4.1) for xsd validation, it works well in my local machine and doesn't in my server, it didn't validate some of the xml tags can anybody help, below is my code. inut_xml=request.raw_post errors =[] xsd = Nokogiri::XML::Schema(File.re

Re: [Rails] Nokogiri gem issues

2011-08-26 Thread Hassan Schroeder
On Fri, Aug 26, 2011 at 9:06 AM, Keith Raymond wrote: > I recently was pointed towards the Nokogiri gem recently to find all > html elements with a particular class, rather than attempting my own > regular expression. > It works perfectly on my local machine, (Lion OS X and passenger), but > whe

[Rails] Nokogiri gem issues

2011-08-26 Thread Keith Raymond
Hello all, I recently was pointed towards the Nokogiri gem recently to find all html elements with a particular class, rather than attempting my own regular expression. (Thanks John-John Tedro and Hassan Schroeder) It works perfectly on my local machine, (Lion OS X and passenger), but when I

[Rails] Nokogiri

2011-02-18 Thread seeni khan
Hi all, I need to include externel javascript and stylesheets into html using nokogiri anyone plz tell me the syntax for the same. -- *Thanks & Regards,* *RAFI,* * * -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. T

[Rails] Nokogiri not returning attribute value verbatim

2010-11-01 Thread David Kahn
Cant seem to find an answer to this on google: If I have this value as the text within an attribute in my xml source: "a2/PP00nFwWa7I8Jog7bcw==\n" When I ask Nokogiri to return it, why does it return this: "a2/PP00nFwWa7I8Jog7bcw== " (the last character I confirmed in the debugger as a space char

[Rails] nokogiri: parsing tags

2009-11-11 Thread Al F.
Hello, I'm trying to use nokogiri gem to parse individual xhtml tags (not the whole html document) and preform some processing on them. Heres an example of a string that I want to process: str = 'http://www.canadascapital.gc.ca/data/2/rec_imgs/5005_Pepsi_H1NB.gif"/> some texttest ' The fol

[Rails] Nokogiri: to_s WITHOUT html surrounding's tags?

2009-10-13 Thread Joshua Muheim
Hi all n = Nokogiri::HTML("H1") n.to_s # => http://www.w3.org/TR/REC-html40/loose.dtd\";>\nH1 Is there a method that only outputs the stuff I've read, and not the whole valid XHTML stuff? Needed output: H1 Thanks a lot Josh -- Posted via http://www.ruby-forum.com/. --~--~-~--~~--