rails 3 used instead of 4