Chris Gunnels
2009-Mar-19 16:32 UTC
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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Craig Demyanovich
2009-Mar-19 18:18 UTC
Re: 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 On Thu, Mar 19, 2009 at 12:32 PM, Chris Gunnels < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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 > -- > Posted via http://www.ruby-forum.com/. > > > >-- Craig Demyanovich Mutually Human Software http://mutuallyhuman.com --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---