Method: Asset::Helpers#image_tag
- Defined in:
- lib/assets/helpers.rb
#image_tag(path) ⇒ Object
Image tags
19 20 21 22 |
# File 'lib/assets/helpers.rb', line 19 def image_tag(path) b = ::Asset.images[path] rescue nil %{<img src="/assets/images/#{CGI.escapeHTML(path)}#{b ? "?#{b}" : ''}">} rescue path end |