2011年3月28日月曜日

link_to で画像(image_tag)にリンクを張る

<%= link_to( image_tag("/images/gazo.gif", {:size => "45x16", :alt => "選択"}), user_path ) %>