I want to write a condition in ruby to display default image if no user image is present , if present display the present image.
please help.
This is my view page:
`@product.reviews.each do |r|
a href="#"
= image_tag r.user.image_url :thumbnail`
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire