Topic: Can anyone translate PHP to Ruby?
Ok so I'm a PHP programmer but I need to put a script on the site that uses Ruby. I know nothing about this language so I was hoping someone here could tell me what to do. Anyway in PHP I would do the following to get a variable from the url and display the correct page:
<?php
if(!isset($_GET['page'])){
include('pages/home.htm');
}else{
include('pages/'.$_GET['page'].'.htm');
}
?>So now I need a Ruby script to do the same thing.
Thanks