title: Is there an advantage to using link_to over the anchor tag in Rails?
body: <p>Don't these two do the same thing?</p>
  
  <p><code>&lt;%= link_to "Example", '#', class: "somestyle" %&gt;</code></p>
  
  <p><code>&lt;a href="#" class= "somestyle"&gt; Example &lt;/a&gt;</code></p>
  
  <p>If I'm writing a static .html.erb page, if everything else is written with HTML tags, doesn't it make sense to use HTML tags for links as well? I'm not sure why one should use a helper. Similarly, for linking style sheets, javascripts, etc.</p>