Updated rails template