Overview of helpers provided by Action View 6.1 AssetTagHelper:用于generate html语言 image_tag ,return an HTML image tag for the source, 可以是部分路径.例子见下. image_tag("rails.png") # => <img src="http://assets.example.com/images/rails.png"…
image_tag(source, options={}) Link Returns an HTML image tag for thesource. The source can be a full path or a file. Options You can add HTML attributes using theoptions. The options supports three additionalkeys for convenience and conformance: :alt…