Update template to work with rails 4 version.