From: Chad Perrin Date: 2011-04-29T12:58:44+09:00 Subject: Re: Ruby Beginner Need Help.. --kfjH4zxOES6UT95V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 29, 2011 at 12:17:04PM +0900, Didin Ibnu Sarnan wrote: >=20 > I have try execute ruby code with Command line and it was success. >=20 > What I want is, I want write ruby code and then display it in my browser > (firefox or whatever) >=20 > how can I do this? There's about a dozen different ways to do that. The most common is probably Rails. Another popular (and more lightweight) option is Sinatra, which I find pretty nice other than some deployment issues I've had. Another is to use an eruby implementation. Then, of course, there's mod_ruby and basic CGI. What you'll want to use will depend on where/how you're going to deploy it. If you just want to play around with it on your own, Sinatra is great to get started quickly. If you want to use the cheapest Web hosting possible, you may want to try eruby or CGI; CGI is like how a lot of Perl Web development used to be done, while eruby gives you a templating engine similar to the way PHP with Apache generally works. If you want to get a proper Ruby host, you probably also have Rails available, and could well get Sinatra working there as well. If you run your own servers, the sky's the limit. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --kfjH4zxOES6UT95V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk26NGEACgkQ9mn/Pj01uKUwDgCeLyqrFK7OM+HM6xnMTCHJB2q0 +0QAn1LN0Y/nZuybVlrBetGCmFcxr/JO =t8ha -----END PGP SIGNATURE----- --kfjH4zxOES6UT95V--