working with ruby 2.1.2 and rails 4.1.2