Answer the question
In order to leave comments, you need to log in
`
How to wrap =image_tag into =link_to in Rails?
there is a user avatar that is generated using
= image_tag sized_image_url(task.user.avatar.url, 32), class: 'avatar-image'
= link_to`.
Answer the question
In order to leave comments, you need to log in
Use block.
= link_to some_where do
image_tag sized_image_url(task.user.avatar.url, 32), class: 'avatar-image'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question