abstract:
How do you do this for Ruby? I tried looking up examples, but all I found was raw code.
Hi, the majority of web based Ruby development is done using a framework called Ruby on Rails - or RoR. Rails is a plugin for Ruby. While Ruby has basic CGI stuff, RoR gives you a much better interface for building dynamic websites. Your host will have support for RoR built in, probably. It is RoR that alows you to do <%="hello"%> in your HTML. With RoR, you usually create your project offline (it includes a no-install-required web server), so you can build and test offline, then upload your project to the server to go live. In the long run, RoR will offer you *immense benifits* over trying to do HTML with Ruby. I suggest you look at a couple of RoR tutorials. RoR essentially gives you what PHP gives you, but SO much more. |