How to add a custom attribute to the HTML output of rails link_to
Try
<%= link_to "product list", { :controller => "product", :action => "list" }, "data-role" => "button" %>
Try
<%= link_to "product list", { :controller => "product", :action => "list" }, "data-role" => "button" %>