In PHP, CGI, or in RoR’s View, we can easily print out debug information. How about in the Controller, how can we just say, print "hello world" (to the webpage output) and return to continue with the view, or stop the controller right there?
In PHP, CGI, or in RoR’s View, we can easily print out debug information.
Share
In the controller you can:
But your view won’t be rendered.
You could also:
and run tail on log/development.log to see the output.
In the view the recommeneded way is: