# What is the difference between new\_article\_path vs. new\_arti

**URL:** <https://www.ruby-forum.com/t/what-is-the-difference-between-new-article-path-vs-new-arti/112028>\
**Category:** Rails\
**Created:** [August 14, 2007, 12:41pm UTC](https://www.ruby-forum.com/t/what-is-the-difference-between-new-article-path-vs-new-arti/112028 "2007-08-14T12:41:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dparkmit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dparkmit](https://www.ruby-forum.com/u/dparkmit)\
**Post date:** [August 14, 2007, 12:41pm UTC](https://www.ruby-forum.com/t/what-is-the-difference-between-new-article-path-vs-new-arti/112028/1 "2007-08-14T12:41:32Z")

</div>

hi all,

i’ve recently begun using RESTful routing techniques in my RoR app.  
as i’m using it, though, i find that i use the \_path and the \_url  
methods interchangebly. what’s the difference between these types of  
methods? thanks!

---

<div class="post-metadata">

**Author:** ![dparkmit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dparkmit](https://www.ruby-forum.com/u/dparkmit)\
**Post date:** [August 14, 2007, 12:47pm UTC](https://www.ruby-forum.com/t/what-is-the-difference-between-new-article-path-vs-new-arti/112028/2 "2007-08-14T12:47:32Z")

</div>

On 14 Aug 2007, at 12:40, dparkmit wrote:

> i’ve recently begun using RESTful routing techniques in my RoR app.  
> as i’m using it, though, i find that i use the \_path and the \_url  
> methods interchangebly. what’s the difference between these types of  
> methods? thanks!

\_path will use the relative path notation, while \_url will give you  
the full url. I believe it’s best practise to only use \_url for  
redirects.

Best regards

Peter De Berdt
