小编dim*_*uch的帖子

link_to语法?想要一起超链接(variable.id +"string")

link_to feed_item.votes_for + "Into it!", into_it_micropost_path(feed_item.id)
Run Code Online (Sandbox Code Playgroud)

我基本上希望超链接成为字符串"Into it!"旁边的变量.

我怎么能实现这个目标?谢谢

string ruby-on-rails concatenation link-to

1
推荐指数
1
解决办法
3318
查看次数

标签 统计

concatenation ×1

link-to ×1

ruby-on-rails ×1

string ×1