added template for rails use