Sha256: ace53d5f257c7557b7ef88fcd4539e92b63c892abe6b8978a6e95eaa1ea62b26
Contents?: true
Size: 623 Bytes
Versions: 20
Compression:
Stored size: 623 Bytes
Contents
module Alchemy module PicturesHelper # This helper returns a path to picture for use inside a image_tag helper. # # Any additional options are passed to the url_helper, so you can add arguments to your url. # # Example: # # <%= image_tag alchemy_picture_path(picture, :size => '320x200', :format => :png) %> # def alchemy_picture_path(picture, options={}) defaults = {:format => Alchemy::Config.get(:image_output_format)} options = defaults.update(options) alchemy.show_picture_path({:id => picture.id, :name => picture.urlname}.merge(options)) end end end
Version data entries
20 entries across 20 versions & 1 rubygems