# Controllername\_url vs controllername\_path

**URL:** <https://www.ruby-forum.com/t/controllername-url-vs-controllername-path/153644>\
**Category:** Rails\
**Created:** [November 19, 2008, 6:53pm UTC](https://www.ruby-forum.com/t/controllername-url-vs-controllername-path/153644 "2008-11-19T18:53:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashit\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/41988e/32.png) [@Ashit\_V](https://www.ruby-forum.com/u/Ashit_V)\
**Post date:** [November 19, 2008, 6:53pm UTC](https://www.ruby-forum.com/t/controllername-url-vs-controllername-path/153644/1 "2008-11-19T18:53:50Z")

</div>

Hi,  
'm new RoR.  
I was just going thru one book.  
I was confused between Controllername\_Path() and Controllername\_Url()  
in RESTful Rails apps.

Can anyone tell me the clear difference?

Thanks

---

<div class="post-metadata">

**Author:** ![Ashit\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/41988e/32.png) [@Ashit\_V](https://www.ruby-forum.com/u/Ashit_V)\
**Post date:** [November 19, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/controllername-url-vs-controllername-path/153644/2 "2008-11-19T19:06:47Z")

</div>

On Wednesday 19 November 2008 15:53:00 Ashit V. wrote:

> Hi,  
> 'm new RoR.  
> I was just going thru one book.  
> I was confused between Controllername\_Path() and  
> Controllername\_Url()  
> in RESTful Rails apps.
> 
> Can anyone tell me the clear difference?

AFAIK, ControllerName\_Url gives you something like  
[http://domain.tld/ControllerName](http://domain.tld/ControllerName), while ControllerName\_Path  
gives you something like  
${RAILS\_ROOT}/app/controllers/controllername\_controller.rb

## HTH,

## Davi V.

E-mail: davividal arroba siscompar ponto com ponto br  
MSN : davividal arroba msn ponto com  
GTalk : davividal arroba gmail ponto com  
Skype : davividal  
YIM : davi\_vidal  
ICQ : 138815296
