提交 426a6b2e 编写于 作者: E Erik St. Martin 提交者: Stefan Penner

making non remote versions of link_to, button_to, submit_tag and...

making non remote versions of link_to, button_to, submit_tag and image_submit_tag output data attributes for things like :confirm, :method, :popup, and :disable_with
上级 98216486
......@@ -215,7 +215,10 @@ def add_confirm_to_attributes!(html_options, confirm)
end
def add_method_to_attributes!(html_options, method, url = nil)
<<<<<<< HEAD
html_options["rel"] = "nofollow" if method.to_s.downcase == "delete"
=======
>>>>>>> making non remote versions of link_to, button_to, submit_tag and image_submit_tag output data attributes for things like :confirm, :method, :popup, and :disable_with
html_options["data-method"] = method
if url.size > 0
html_options["data-url"] = url
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册