12月8日 周五 image_tag.

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" alt="Rails" />