trope wrote:
> I am new, coming from a PHP background.
> 
> In PHP , you can use var_dump(var) and you will be presented with all
> of a variables info.
> 
> Is there a way to dump in RoR? For instance, can I dump my :customers
> object from my controller or something?
> 
> Thanks!

i did this.. and its working ok for me so far:

def myaction
render :text myvar.inspect
end

im also from a php background and am used to being able to do anything i 
want anywhere in the app.. in rails its a bit weird to have to .. hack 
out variable dumping.. but anyway i hope that helps..

-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to