In PHP I could echo data to the web browser to debug.
eg. echo print_r($array)
How do I do that in RoR? I tried with puts with no luck.
Is there a way?
if i use Doctrine_Core::getTable('User')- i will have no auto completion.
isnt it better to just use User:: for autocompletion?
and of course i have to define the methods static
what is the benefit with using getTable except that i can use a non static method?
when i pass variables from a controller they are only passed to a template, not a layout surrounding that template.
how do i pass variables to a template?
thanks