Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は ruby on rails の初心者であり、RoR の構造と機能を試していて、静的な HTML の代わりに RoR を使用して簡単なリロード リンクを作成する方法を知りたいと思っています。
link_to "reload", url_for(params)
url: <%= link_to "Refresh", "" %>に空の文字列を指定すると、現在のページにリンクされます。パラメータをクリアしたいとします。
<%= link_to "Refresh", "" %>
パラメータでリフレッシュしたい場合は、@bubblezの回答に従ってください:
<%= link_to "Refresh", url_for(params) %>.
<%= link_to "Refresh", url_for(params) %>