Frederick Cheung wrote: > On Jun 8, 5:11�am, "J. D." <[email protected]> wrote: >> have to figure out how to check whether or not it returns nil and create >> data.. > > It will never return nil. It will return an array (possibly an empty > one). You might want to set your own timestamp and use that rather > than relying on created at (so that the date is one that is > significant to your data and not just when you happened to run your > scraper) > > Fred
Hi Fred, Yep you were correct. If the query is empty it returns an empty array [] so I'll make some checks against that. I'll also take your advice and create a new column called compiled_on and associate it to timestamp. Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

