Updated template.erb file