I really think you should go with PHP. All though Ruby on Rails is a "new technology" with a "good future", there are currently more resources for PHP available. They have a great manual on their website (
www.php.net), and you can use scripts. It's way more customizable and WAY easier to use in my opinion. Good luck!