Changed to version 4.1 of rails