Changing the syntax to the latest version of rails.