application.rb is refactored