From: Cameron Vessey Date: 2010-09-14T02:43:07+09:00 Subject: Re: .each skipping elements Yep yep! needed to add the .text at the end... Thanks you guys are great.. def city_update city_name = [] agent = Mechanize.new page = agent.get('http://www.craigslist.org/about/sites') 8.times {page.links.delete_at(0)} page.links.delete_if{|link| link.text =~ /(Blog|About Us|Status|Help|TOS|Privacy|Are we missing an area\?)/ } page.links.each{|link| city_name << link.text } end puts city_update Thats the whole method... basicly you want to make sure you have a current list of availible Craigslist cities.. and you want to cut out all the non needed links.. thanks again -- Posted via http://www.ruby-forum.com/.