When using a rake file to load stuff from a screen scrape into a
database I ran into a problem 'stack level too deep'. After a lot
of scratching around I discovered that it happened only if the rake
file required 'scrubyt'. Which it does otherwise I can't do the
screen scraping. To reproduce the problem do this
1) create a model and migrate up 2) put the line "require
'scrubyt'" into a rake file in lib/tasks 3) now rake
db:rollback
You'll get an error 'stack level too deep', but if you take out
the require it'll be ok.
The stack level too deep occurs in other places as well, such as
trying to create an instance of the model inside a rake task.
So scrubyt can't be used inside rake tasks