title: What's the rails way to do buttons as simple links?
body: <p>I have a button (in a haml view) that I want to use to go to another controller/action.  I am more accustomed to PHP than rails.  What I have tried works but does not feel like the rails way.  Here are my 3 ways.  Can anyone offer suggestions?  I'd particularly like to see the way the button with a javascript onclick handler would be done.</p>
  
  <pre><code>%p
  =link_to "Edit", edit_user_registration_path(@user)
  %button.btn.btn-success.doEdit{:onclick =&gt; "window.location='#{edit_user_registration_path(@user)}'"} Edit
  %button.btn.btn-danger.doEdit2 Edit
  :javascript
    $(document).ready(function(){
    $('.doEdit2').click(function(event) {
        window.location="#{edit_user_registration_path(@user)}";
    });
  });
  </code></pre>