Output data to web browser in ruby-on-rails?

Posted by fayer on Stack Overflow See other posts from Stack Overflow or by fayer
Published on 2010-06-12T08:01:58Z Indexed on 2010/06/12 8:12 UTC
Read the original article Hit count: 119

Filed under:

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?

© Stack Overflow or respective owner

Related posts about ruby-on-rails