image_url gives different result when run from controller?
问题 The problem This code: image_url('my_image.png') generates this url from within the view : http://localhost:3000/assets/my_image-d229e5de55e4f8589c78e2419221fa3ae4f9d4026f.png But when the same code is run from the controller , it generates this: http://localhost:3000/images/my_image.png Only the first url actually works. How can I generate the correct url (the one containing the fingerprint) from the controller? What I tried I found a way to make it work locally, by generating the digest