update rails to 4.1, gems, correct regular trainings scope bug