Some cleanup for the Rails app