Upgrade Rails. Remove superfluous code.