run a rake file from command line and view what is happening

Hi,

It doesn’t look like you’re running that in script/console. If not, at your command prompt, run

script/console

Then try the find in there.

More on script/console and other command-line Rails utilities:

http://guides.rubyonrails.org/command_line.html

Regards,
Craig