0

このコードは問題なく機能しますが、同じ結果を得るにはRailsの方が優れていると確信しています。

<%= link_to (image_tag post.image1(:thumb)), (posts_path+"/"+(post.id).to_s) %>
4

1 に答える 1

0

これもうまくいくはずです:

<%= link_to (image_tag post.image1(:thumb)), post %>
于 2012-08-30T21:32:23.420 に答える