On Monday, October 29, 2018 at 10:14:44 AM UTC-4, Colin Law wrote: > > On Mon, 29 Oct 2018 at 11:54, fugee ohu <[email protected] <javascript:>> > wrote: > >> >> >> On Monday, October 29, 2018 at 4:48:42 AM UTC-4, Colin Law wrote: >>> >>> On Mon, 29 Oct 2018 at 05:08, fugee ohu <[email protected]> wrote: >>> >>>> How do I create an image object from a remote image url in rails console >>>> >>> >>> What do you mean by image object? >>> >>> >> An object returned by Nokogiri as a result of selecting a css.("a") >> element containing <img src="..."> >> > > That doesn't make sense, you ask how to create an image object, then say > that an image object is an object returned by nokogiri. So to create it > all you have to do is make that request to nokogiri. > > Colin > > I'm trying to insert an image into the assets table from web scraping Scraping gets me the src of the image I don't know if I should submit a form or do a raw insert in my script
-- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9f8ba9af-0ad0-4fd0-856b-0f236c76149b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

