Update rails.rb

support rails4