Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 1:38:34 PM UTC-5, Walter Lee Davis wrote: > > > > On Dec 26, 2018, at 5:12 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, December 26, 2018 at 4:41:53 AM UTC-5, Colin Law wrote: > > On Tue, 25 Dec 2018 at 20:19, fugee ohu wrote: > > > > > > yes,

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 8:07:19 PM UTC-5, Hassan Schroeder wrote: > > On Thu, Dec 27, 2018 at 4:10 PM fugee ohu > > wrote: > > > So I need to pass in accept request header json as the first parameter > to NET::HTTP ? > > Is that what the docs say? > > -- > Hassan Schroeder

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 5:46:59 PM UTC-5, Hassan Schroeder wrote: > > On Thu, Dec 27, 2018 at 2:00 PM fugee ohu > > wrote: > > > Net::HTTP.get() returns a string > > data = JSON.parse(response) > > JSON::ParserError: 765: unexpected token at >

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread Hassan Schroeder
On Thu, Dec 27, 2018 at 4:10 PM fugee ohu wrote: > So I need to pass in accept request header json as the first parameter to > NET::HTTP ? Is that what the docs say? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan Consulting Availability : Silicon

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 5:46:59 PM UTC-5, Hassan Schroeder wrote: > > On Thu, Dec 27, 2018 at 2:00 PM fugee ohu > > wrote: > > > Net::HTTP.get() returns a string > > data = JSON.parse(response) > > JSON::ParserError: 765: unexpected token at >

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread Hassan Schroeder
On Thu, Dec 27, 2018 at 2:00 PM fugee ohu wrote: > Net::HTTP.get() returns a string > data = JSON.parse(response) > JSON::ParserError: 765: unexpected token at > 'jQuery1830644047005491_154589753({"success":true,"code":0,"results":[{"productId" Did you ask for JSON data via the Accept

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 5:17:05 PM UTC-5, Colin Law wrote: > > On Thu, 27 Dec 2018 at 22:00, fugee ohu > > wrote: > > > > > > > > On Thursday, December 27, 2018 at 4:04:55 PM UTC-5, Hassan Schroeder > wrote: > >> > >> On Thu, Dec 27, 2018 at 12:24 PM fugee ohu wrote: > >> >

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread Colin Law
On Thu, 27 Dec 2018 at 22:00, fugee ohu wrote: > > > > On Thursday, December 27, 2018 at 4:04:55 PM UTC-5, Hassan Schroeder wrote: >> >> On Thu, Dec 27, 2018 at 12:24 PM fugee ohu wrote: >> >> > So then how >> >> 1) choose HTTP client >> 2) send request >> 3) parse response >> >> -- >> Hassan

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 4:04:55 PM UTC-5, Hassan Schroeder wrote: > > On Thu, Dec 27, 2018 at 12:24 PM fugee ohu > wrote: > > > So then how > > 1) choose HTTP client > 2) send request > 3) parse response > > -- > Hassan Schroeder hassan.s...@gmail.com >

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 1:38:34 PM UTC-5, Walter Lee Davis wrote: > > > > On Dec 26, 2018, at 5:12 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, December 26, 2018 at 4:41:53 AM UTC-5, Colin Law wrote: > > On Tue, 25 Dec 2018 at 20:19, fugee ohu wrote: > > > > > > yes,

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 1:38:34 PM UTC-5, Walter Lee Davis wrote: > > > > On Dec 26, 2018, at 5:12 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, December 26, 2018 at 4:41:53 AM UTC-5, Colin Law wrote: > > On Tue, 25 Dec 2018 at 20:19, fugee ohu wrote: > > > > > > yes,

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 1:38:34 PM UTC-5, Walter Lee Davis wrote: > > > > On Dec 26, 2018, at 5:12 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, December 26, 2018 at 4:41:53 AM UTC-5, Colin Law wrote: > > On Tue, 25 Dec 2018 at 20:19, fugee ohu wrote: > > > > > > yes,

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread Hassan Schroeder
On Thu, Dec 27, 2018 at 12:24 PM fugee ohu wrote: > So then how 1) choose HTTP client 2) send request 3) parse response -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan Consulting Availability : Silicon Valley or remote -- You received this message

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 1:38:34 PM UTC-5, Walter Lee Davis wrote: > > > > On Dec 26, 2018, at 5:12 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, December 26, 2018 at 4:41:53 AM UTC-5, Colin Law wrote: > > On Tue, 25 Dec 2018 at 20:19, fugee ohu wrote: > > > > > > yes,

Re: [Rails] how do i use chromedriver-helper without capybara

2018-12-27 Thread Rob Zolkos
Is this in a test? Whats the scenario you are trying to achieve? On Thu, Dec 27, 2018 at 1:03 PM fugee ohu wrote: > > How do I create a new instance of chromedriver-helper to fetch a url > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk"

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread Walter Lee Davis
> On Dec 26, 2018, at 5:12 PM, fugee ohu wrote: > > > > On Wednesday, December 26, 2018 at 4:41:53 AM UTC-5, Colin Law wrote: > On Tue, 25 Dec 2018 at 20:19, fugee ohu wrote: > > > > yes, there's scripts running and when i click response i see the data i'm > > looking for The script

[Rails] how do i use chromedriver-helper without capybara

2018-12-27 Thread fugee ohu
How do I create a new instance of chromedriver-helper to fetch a url -- 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

Re: [Rails] Capybara visit url from s rails console

2018-12-27 Thread Hassan Schroeder
On Thu, Dec 27, 2018 at 9:33 AM fugee ohu wrote: > I'm trying to request a site out on the web Maybe google `ruby http client` ? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan Consulting Availability : Silicon Valley or remote -- You received this

Re: [Rails] Capybara visit url from s rails console

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 9:43:00 AM UTC-5, Rob Zolkos wrote: > > On the rails console try app.get('/') (replace the string with a > path) eg app.get('/about') > > On Wed, Dec 26, 2018 at 4:58 PM fugee ohu > > wrote: > > > > When I try to run `visit ` from rails console rails

Re: [Rails] How do i scrape dynamic content from Struts framework with Ruby

2018-12-27 Thread fugee ohu
On Wednesday, December 26, 2018 at 6:14:19 PM UTC-5, Walter Lee Davis wrote: > > > > On Dec 26, 2018, at 5:32 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, December 26, 2018 at 2:15:37 PM UTC-5, Walter Lee Davis > wrote: > > > > > On Dec 26, 2018, at 2:11 PM, fugee ohu wrote:

Re: [Rails] How do i scrape dynamic content from Struts framework with Ruby

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 9:38:18 AM UTC-5, Rafael Belo wrote: > > You won't have some friendly parsed javascript response. The javascript > it's not information itself, it's a lot of command the will handle > browser's DOM. That's why we're using a driver to get this informations. > >

Re: [Rails] How do i scrape dynamic content from Struts framework with Ruby

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 9:38:18 AM UTC-5, Rafael Belo wrote: > > You won't have some friendly parsed javascript response. The javascript > it's not information itself, it's a lot of command the will handle > browser's DOM. That's why we're using a driver to get this informations. > >

Re: [Rails] Capybara visit url from s rails console

2018-12-27 Thread Rob Zolkos
On the rails console try app.get('/') (replace the string with a path) eg app.get('/about') On Wed, Dec 26, 2018 at 4:58 PM fugee ohu wrote: > > When I try to run `visit ` from rails console rails complains so such > route, of course there's no supposed to be since I'm not requesting a page

Re: [Rails] How do i scrape dynamic content from Struts framework with Ruby

2018-12-27 Thread Rafael Belo
You won't have some friendly parsed javascript response. The javascript it's not information itself, it's a lot of command the will handle browser's DOM. That's why we're using a driver to get this informations. If you get request and parse it, you'll get the raw html with javascript code, but if

Re: [Rails] How do i scrape dynamic content from Struts framework with Ruby

2018-12-27 Thread fugee ohu
On Wednesday, December 26, 2018 at 6:14:19 PM UTC-5, Walter Lee Davis wrote: > > > > On Dec 26, 2018, at 5:32 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, December 26, 2018 at 2:15:37 PM UTC-5, Walter Lee Davis > wrote: > > > > > On Dec 26, 2018, at 2:11 PM, fugee ohu wrote:

Re: [Rails] How do i scrape dynamic content from Struts framework with Ruby

2018-12-27 Thread fugee ohu
On Wednesday, December 26, 2018 at 6:14:19 PM UTC-5, Walter Lee Davis wrote: > > > > On Dec 26, 2018, at 5:32 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, December 26, 2018 at 2:15:37 PM UTC-5, Walter Lee Davis > wrote: > > > > > On Dec 26, 2018, at 2:11 PM, fugee ohu wrote:

[Rails] JOBS( Opening for ROR Developer) Location : New Delhi(India) and U.S. (East Coast)

2018-12-27 Thread amit.kumar1 via Ruby on Rails: Talk
Hi Everyone, We are looking for ROR Developer for our company Kiwitech (www.kiwitech.com) Candidate should be a hard coder in ROR, should be capable of building a project from scratch. Should be good in designing and architecture approach and should be good in problem-solving skill. Kindly

Re: [Rails] Re: Comment in the Blog test project

2018-12-27 Thread cg jieweihui
Thanks all for your reply. I understand the method you mentioned, but it doesn't work for this case (Comment is an associated class with Blog). Here is the code of _form.html.erb in views/comments folder: 1 2 <%= form_with(model: [@article, @article.comments.build], local: true) do |form| %>