最佳答案
如何创建这种类型的链接:
<a href="#" onclick="document.getElementById('search').value=this.value">
在 Rails 中使用方法 link_to
?
我从 Rails 文档上看不出来。