Updated Rails template for Rails 4.