# Problem with Scrubyt

**URL:** <https://www.ruby-forum.com/t/problem-with-scrubyt/178085>\
**Category:** Rails\
**Created:** [October 28, 2009, 11:07pm UTC](https://www.ruby-forum.com/t/problem-with-scrubyt/178085 "2009-10-28T23:07:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cojones](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@cojones](https://www.ruby-forum.com/u/cojones)\
**Post date:** [October 28, 2009, 11:07pm UTC](https://www.ruby-forum.com/t/problem-with-scrubyt/178085/1 "2009-10-28T23:07:56Z")

</div>

Hey,

I’m trying to work with Scrubyt using one of the examples:  
#simple google example  
require ‘rubygems’  
require ‘scrubyt’

@data = Scrubyt::Extractor.define do  
fetch ‘[http://www.google.com/](http://www.google.com/)’  
fill\_textfield ‘q’, ‘ipod’  
submit

```
 record "//ol[@id='rso']" do
   name "//li[@class='g']/h3[@class=r]/a[@class=l]"
 end

```

end

And I get an error on line 10 which is the fill\_textfield one:  
(eval):1:in `fill\_textfield’: You have a nil object when you didn’t  
expect it!  
You might have expected an instance of ActiveRecord::Base.  
The error occurred while evaluating nil.[]=

Does anyone know why it’s not working?
