title: How to get the current view path in rails?
body: <p>I need to pass the path for current view to a render for partial within that view in order to generate a link (in the partial) to the view itself. How can I get the path for the current view when javascript is disabled?</p>
  
  <pre><code>&lt;%= render "errors", object: @car.plate, path: (what?)%&gt;
  </code></pre>