method

image_path

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"