Upgraded rails to 4.1.2
DRYed a lot