<img> to image_tag <img src="clean_wave.jpg?" alt="Clean_wave"><%= image_tag("clean_wave.jpg?", :class => "img_preview") %>