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


I have the following code that I want to run but I can’t seem to figure
out how to view the variable’s content

someobj = AnotherObj.find(:all, :conditions => {:col_10 => nil, :col_12
=> nil, :col_5 => “12345”})
puts someobj.inspect

Now I run those two lines of code in the terminal but nothing happens.
When I say nothing happens I mean there is no ouput. I am expecting to
see a break down of the someobj object



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


Then try the find in there.

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


On Thu, Mar 19, 2009 at 12:32 PM, Chris G. <
removed_email_address@domain.invalid> wrote:

see a break down of the someobj object

Posted via

Craig D.
Mutually Human Software