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