From: Eric Christopherson Date: 2012-04-06T05:37:30+09:00 Subject: Re: while loop On Wed, Apr 4, 2012 at 8:29 AM, naveen kumar 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.