Ruby on Rails Friday, December 28, 2018

On Friday, December 28, 2018 at 12:39:28 PM UTC, leyla kapi wrote:
> Hello everyone,
>
>
> I try to upgrade rails version of my rails app from 5.0.7.1 to 5.2.0 . 
>
>
> I copied from rubygems `gem 'rails', '~> 5.2'` then bundle, but I realized that installed rails 5.2.2 version not 5.2.0 . I assume that instead of `gem 'rails', '~> 5.2'`, it should be something like `gem 'rails', '~> 5.2.0'` or whatever. 
>
>

~> 5.2 means ">= 5.2 and < 5.3" (see https://bundler.io/v1.5/gemfile.html#gemfiles for more examples). If you want a specific version use "= 5.2.2"

Fred


> Thanks in advance for your time!
>
>
> Have a good day!

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/48be6a6c-7f8f-41a1-8b1d-ae45676ede29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails



On Wednesday, November 7, 2018 at 12:28:05 PM UTC-5, Jake Niemiec wrote:
The ui-box class would indicate that it is a react component: https://github.com/segmentio/ui-box

React components are run client-side, meaning the text you are looking for is inserted into the document after the page runs <script> tags. I would take a look at the Sources tab in chrome, you can find all the loaded scripts there.

On Wed, Nov 7, 2018 at 10:17 AM fugee ohu <fuge...@gmail.com> wrote:


On Wednesday, November 7, 2018 at 11:01:32 AM UTC-5, Colin Law wrote:
I should think that javascript is involved.  I am sure you asked a
similar question before when you were trying to scrape a website and
couldn't find the text in the html.

Colin
On Wed, 7 Nov 2018 at 15:35, fugee ohu <fuge...@gmail.com> wrote:
>
> I'm not very good with the consoles in chrome and firefox but I couldn't find the text I was looking for in source even though it's displayed as text seemingly, the cursur changes to a vertical line on mouse-over I found this html below in the source How does this html create the text that displays?
>
>    <div class="ui-box product-description-main" id="j-product-description">
>         <div class="ui-box-title">Product Description</div>
>         <div class="ui-box-body">
>
>             <div class="description-content" data-role="description" data-spm="1000023">
>             <div class="loading32"></div>
>             </div>
>
>         </div>
>     </div>
>
> --
> 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.

 Yes, within that context, javascript, how does it happen that the text I'm viewing in the browser isn't visible in source?

--
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/12b65225-60e5-4fe3-80a7-9ebb8013f312%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

How do I scrape it 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a20829aa-1fdd-4324-be46-623d06993e99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails



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 <fuge...@gmail.com> 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.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

What docs are you talking about? 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f92bbc33-dff5-4631-8ba0-3230173f9c36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.