removed ruby attribute and added templates