replacing template to ROR  #1