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

7 lượt xem
Chuyển tới thư đầu tiên chưa đọc

Colin Law

chưa đọc,
09:24:26 8 thg 10, 20188/10/18
đến 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

chưa đọc,
12:34:30 8 thg 10, 20188/10/18
đến Ruby on Rails: Talk
Got that syntax somewhere on the web, I took it out and it still doesn't work 
 

fugee ohu

chưa đọc,
12:36:01 8 thg 10, 20188/10/18
đến 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

chưa đọc,
12:37:24 8 thg 10, 20188/10/18
đến 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
Bài viết đã bị xóa

Colin Law

chưa đọc,
15:58:52 8 thg 10, 20188/10/18
đến 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

chưa đọc,
16:20:08 8 thg 10, 20188/10/18
đến Ruby on Rails: Talk
maybe i should just search for the class without the li 
Trả lời tất cả
Trả lời tác giả
Chuyển tiếp
0 tin nhắn mới