organize ruby template, fixed #16