title: Rails: Disabling link_to link not working but hidden link_to working
body: <p>The link_to method is as which is not disabled:-  </p>
  
  <pre><code>&lt;%= link_to edit_cabinet_path(object), remote: true, disabled: true do %&gt;
        &lt;span class="glyphicon glyphicon-pencil"&gt;&lt;/span&gt;
  &lt;% end %&gt;  
  </code></pre>
  
  <p>but if i do like below which hides the link  </p>
  
  <pre><code>&lt;%= link_to edit_cabinet_path(object), remote: true, style: "display:none;" do %&gt;
        &lt;span class="glyphicon glyphicon-pencil"&gt;&lt;/span&gt;
  &lt;% end %&gt;  
  </code></pre>
  
  <p>Now the question is how to disable this type of link with block, and whats the reason that second code is working and first is not.</p>