Moved Rails.php
Some changes