0
我想link_to
一個按鈕動作如何在Ruby on Rails的
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#newTag">
<i class="fa fa-plus"></i> New Tag
</button>
我希望把它作爲一個path:
該代碼使用模式與的link_to:
<%= render "shared/empty_view", path: contacts_path, title: "You do not have any tags!", action:"Create Tag", image: "/no_products.png" %>
我有嘗試類似的問題,類似的問題,但我似乎無法得到正確的語法。
謝謝!有效 – RickS