I'm migrating Rails app from 2 to 3.
Somehow from,
link_to image_tag("icon.png")
img's src attribute is prefixed with "/assets/icon.png" instead of "/images/icon.png" as it was in Rails 2.
What is the correct way? Thanks
Rails 3.1+ was released with a new set of features referred to collectively as the "Asset Pipeline." Read all about it in the Rails Asset Pipeline documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With