このコードは問題なく機能しますが、同じ結果を得るにはRailsの方が優れていると確信しています。
<%= link_to (image_tag post.image1(:thumb)), (posts_path+"/"+(post.id).to_s) %>
このコードは問題なく機能しますが、同じ結果を得るにはRailsの方が優れていると確信しています。
<%= link_to (image_tag post.image1(:thumb)), (posts_path+"/"+(post.id).to_s) %>