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 回答