Updated the app generator for Rails 4.