As referred here in the [image_tag documentation][1] if you passed
image_tag(temp.img)
It will reproduce:
<img src="/assets/[YOUR TAG IMG]" />
So I believe that yours should look like this:
image_tag("/images/#{temp.img}")
[1]: https://apidock.com/rails/ActionView/Helpers/AssetTagHelper/image_tag