title: Trigger an action through button in Rails
body: <p>This should be an easy question, but I just can't figure it out. I want to trigger an action (which just renders a page) through a button using "button_to" in view:</p>
  
  <pre><code>&lt;%= button_to "Fresh", action: 'fresh', method: 'get' %&gt;
  </code></pre>
  
  <p>The error says "No route matches [POST] "/static_pages/fresh"". It seems that the button still uses "post" instead the "get". Meanwhile, if I use "link_to", it works fine.</p>
  
  <pre><code>&lt;%= link_to "Fresh", action: 'fresh', method: 'get' %&gt;
  </code></pre>
  
  <p>Thanks for any comments and help.</p>