Wrong usage of erb templates, useless codes