method
image_path
v1.1.6 -
Show latest stable
- Class:
ActionView::Helpers::AssetTagHelper
image_path(source)public
Returns path to an image asset. Example:
The src can be supplied as a…
- full path, like "/my_images/image.gif"
- file name, like "rss.gif", that gets expanded to "/images/rss.gif"
- file name without extension, like "logo", that gets expanded to "/images/logo.png"