On Wed, Apr 4, 2012 at 8:29 AM, naveen kumar <lists / ruby-forum.com> wrote:
> hi friends..i tring to scrape links using nokogiri gem..i using the
> while loop,but the linkis not working properly to while loop the
> condition is "status =404"..pls solve my problem

You should use double equals in such a condition, e.g. `status ==
404`. Also, the library you're using to fetch web pages might not
store HTTP statuses as numbers; you might have to compare against the
string '404' instead.