Getting ready for rails 4