Take the 2-minute tour ×  I'm new to developing in Ruby and have
mostly been using irb to experiment with code. For longer
scripts, it would be helpful to be able to run them in my native
browser (similar to how I run php scripts through MAMP). I
believe there is a way to do this using localhost:3000 but I
have not been able to get it to work. So my question is, what is
the best way to view Ruby scripts in my native browser?
share|improve this question Your question is a bit confusing.
Are you talking about a standalone Ruby program or a Rails
application? Do you want to execute the script or look at its
source code? –  John Topley Apr 26 '09 at 16:24 I'm talking
about a standalone Ruby program, which I'm now realizing may
only be possible to run over Terminal, as it is Rails which
supplies the html code that a browser would read.. Does that
sound correct? –  jwb Apr 26 '09 at 16:39 Yes, although you can
run Rails code through the Terminal too using script/console
(think of it as an IRB that has access to yo