fix the erb syntax check and makes it rails compatible