title: RoutingError No route matches
body: <p>I am trying to visit new action of a controller from different <code>haml</code></p>
  <pre><code>= button_to 'Demo', new_demo_path, {class: 'btn btn-primary btn-sm'}
  </code></pre>
  <p>But i am getting the error:</p>
  <pre><code>No route matches
  </code></pre>
  <p>My route already has the path:</p>
  <pre><code>/demos/new(.:format)
  </code></pre>
  <p>Also in my route file:</p>
  <pre><code>resources :demos
  </code></pre>
  <p>What am i missing here?</p>