Re: [Rails] find li by class with nokogiri parse html

7 views
Skip to first unread message

Colin Law

unread,
Oct 8, 2018, 9:24:26 AM10/8/18
to Ruby on Rails: Talk
Why have you got a space after li?

Colin

On Mon, 8 Oct 2018 at 12:07, fugee ohu <fuge...@gmail.com> wrote:
I'm trying to find <li class="brand-content">
pry(main)> rows=mylist.css("li .brand-content")

--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/362a2994-c908-4bf2-997a-6ffdf786854b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

fugee ohu

unread,
Oct 8, 2018, 12:34:30 PM10/8/18
to Ruby on Rails: Talk
Got that syntax somewhere on the web, I took it out and it still doesn't work 
 

fugee ohu

unread,
Oct 8, 2018, 12:36:01 PM10/8/18
to Ruby on Rails: Talk


On Monday, October 8, 2018 at 9:24:26 AM UTC-4, Colin Law wrote:
I deleted this as soon as I posted it because there's no edit and reposted I don't know how you  were able to reply

fugee ohu

unread,
Oct 8, 2018, 12:37:24 PM10/8/18
to Ruby on Rails: Talk


On Monday, October 8, 2018 at 9:24:26 AM UTC-4, Colin Law wrote:
For more options, visit https://groups.google.com/d/optout.

Also, these posts get submitted accidentally when I type on my laptop I don't know how it happens
Message has been deleted

Colin Law

unread,
Oct 8, 2018, 3:58:52 PM10/8/18
to Ruby on Rails: Talk
Because this is effectively a mailing list.  Once it is in our inboxes you obviously cannot delete it.

Colin
 

--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.

fugee ohu

unread,
Oct 8, 2018, 4:20:08 PM10/8/18
to Ruby on Rails: Talk
maybe i should just search for the class without the li 
Reply all
Reply to author
Forward
0 new messages