On 26 May 2012 18:50, Prajwal B. <[email protected]> wrote:
> page.css("#{TABLE_DIV_ID} tr")[1..-2].each do |tr|
>      data_tds = tr.css('td').map{ |td|
>         td.text.gsub(/[$,](?=\d)/, '').gsub(/\302\240|\s/, ' ').strip
>      }
>
> first line is saying no method error 'each' do
> for nil class

Then page.css("#{TABLE_DIV_ID} tr")[1..-2] is nil

Colin

-- 
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.

Reply via email to