cleaned up rails app