title: Is there a way to get a url for a resource in rails
body: <p>If I have a resource such as @post, is there a way to get the url to the path to that resource such as:</p>
  
  <pre><code>@post.to_url
  url_for(@post)
  path_to(@post)
  @post.to_path...
  </code></pre>
  
  <p>you get the ideal</p>