# "./blah/blah" vs. "/blah/blah"

**URL:** <https://www.ruby-forum.com/t/blah-blah-vs-blah-blah/81459>\
**Category:** Rails\
**Created:** [March 13, 2006, 9:04pm UTC](https://www.ruby-forum.com/t/blah-blah-vs-blah-blah/81459 "2006-03-13T21:04:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![surendra\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Post date:** [March 13, 2006, 9:04pm UTC](https://www.ruby-forum.com/t/blah-blah-vs-blah-blah/81459/1 "2006-03-13T21:04:23Z")

</div>

Hello,  
Earlier in my rails application, I was using the convention of writing  
the  
following to refer to templates and/or views in the view folder.  
“./blah/blah”

But in the Edge rail, it doesn’t work and the page doesn’t shows any  
output  
there is no error in the development log as well. But changing the above  
to  
“/blah/blah” seems to fix things.

Was I wrong in using the earlier convention or is something else amiss?

Thanks.

–

Surendra S.  
[http://ssinghi.kreeti.com](http://ssinghi.kreeti.com), [http://www.kreeti.com](http://www.kreeti.com)  
Read my blog at: [http://cuttingtheredtape.blogspot.com/](http://cuttingtheredtape.blogspot.com/)  
,----  
| “All animals are equal, but some animals are more equal than others.”  
| – Orwell, Animal Farm, 1945  
`----

---

<div class="post-metadata">

**Author:** ![surendra\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Post date:** [March 14, 2006, 12:04am UTC](https://www.ruby-forum.com/t/blah-blah-vs-blah-blah/81459/2 "2006-03-14T00:04:34Z")

</div>

Surendra S. wrote:

> Hello,  
> Earlier in my rails application, I was using the convention of writing  
> the  
> following to refer to templates and/or views in the view folder.  
> “./blah/blah”
> 
> But in the Edge rail, it doesn’t work and the page doesn’t shows any  
> output  
> there is no error in the development log as well. But changing the above  
> to  
> “/blah/blah” seems to fix things.
> 
> Was I wrong in using the earlier convention or is something else amiss?

I thought the convention was to leave out the beginning slash and just  
write ‘blah/blah’.

-matthew

---

<div class="post-metadata">

**Author:** ![surendra\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Post date:** [March 14, 2006, 9:01am UTC](https://www.ruby-forum.com/t/blah-blah-vs-blah-blah/81459/3 "2006-03-14T09:01:49Z")

</div>

Matthew I. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

> > to  
> > “/blah/blah” seems to fix things.
> > 
> > Was I wrong in using the earlier convention or is something else amiss?
> 
> I thought the convention was to leave out the beginning slash and just  
> write ‘blah/blah’.

Nope, not when one is giving an absolute path, starting from the views  
folder.

So, if your view is in a folder ‘home’ then Rails, will assume that  
‘blah/blah’ points to home/blah/blah

–  
Surendra S.  
[http://ssinghi.kreeti.com](http://ssinghi.kreeti.com), [http://www.kreeti.com](http://www.kreeti.com)

,----  
| “All animals are equal, but some animals are more equal than others.”  
| – Orwell, Animal Farm, 1945  
`----

---

<div class="post-metadata">

**Author:** ![surendra\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Post date:** [March 14, 2006, 9:08am UTC](https://www.ruby-forum.com/t/blah-blah-vs-blah-blah/81459/4 "2006-03-14T09:08:04Z")

</div>

Matthew I. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

> > to  
> > “/blah/blah” seems to fix things.
> > 
> > Was I wrong in using the earlier convention or is something else amiss?
> 
> I thought the convention was to leave out the beginning slash and just  
> write ‘blah/blah’.

## My bad, thanks for pointing this out.

Surendra S.  
[http://ssinghi.kreeti.com](http://ssinghi.kreeti.com), [http://www.kreeti.com](http://www.kreeti.com)  
Read the latest news at: [http://news.kreeti.com](http://news.kreeti.com)  
,----  
| “War is Peace! Freedom is Slavery! Ignorance is Strength!”  
| – Orwell, 1984, 1948  
`----
