You’ve had some answers about rails, but ruby 1.8.7 is also no longer receiving security updates from the ruby core team (some linux distributions are back porting security fixes).
Even if you are stuck on rails 3.0.x, you really don’t want to use 3.0.3 - the last in that series was 3.0.20 - you’re missing out on nearly 2.5 years of bug fixes & security fixes,such as
https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ
https://groups.google.com/forum/#!topic/rubyonrails-security/DCNTNp_qjFM
https://groups.google.com/forum/#!topic/rubyonrails-security/l4L0TEVAz1k
You are almost certainly vulnerable to remote code execution, sql injection etc.
Fred