adding templates and Railtie