# Hash /expecting tASSOC/

**URL:** <https://www.ruby-forum.com/t/hash-expecting-tassoc/181625>\
**Category:** Ruby\
**Created:** [January 14, 2010, 10:21pm UTC](https://www.ruby-forum.com/t/hash-expecting-tassoc/181625 "2010-01-14T22:21:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@aidy](https://www.ruby-forum.com/u/aidy)\
**Post date:** [January 14, 2010, 10:21pm UTC](https://www.ruby-forum.com/t/hash-expecting-tassoc/181625/1 "2010-01-14T22:21:15Z")

</div>

Hi,

Can any tell me why I am getting the error: “syntax error, unexpected  
‘=’, expecting tASSOC” for the below hash please?

tem\_urls = {  
:home\_page =\> website\_root , :rm\_footage =\>  
“#{website\_root}/gallery/home/rightsmanaged.do”,  
:rushes =\> “#{website\_root}/gallery/home.do”, :rt\_footage  
="#{website\_root}/gallery/home/royaltyfree.do"  
}

Thanks

Aidy

---

<div class="post-metadata">

**Author:** ![aidy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@aidy](https://www.ruby-forum.com/u/aidy)\
**Post date:** [January 14, 2010, 10:28pm UTC](https://www.ruby-forum.com/t/hash-expecting-tassoc/181625/2 "2010-01-14T22:28:52Z")

</div>

On 14.01.2010 22:20, aidy wrote:

> }  
> :rt\_footage ="#{website\_root}/gallery/home/royaltyfree.do"  
> ^^^  
> The last key-value pair is “just” an “=”, and not the expected “=\>”.

---

<div class="post-metadata">

**Author:** ![aidy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@aidy](https://www.ruby-forum.com/u/aidy)\
**Post date:** [January 14, 2010, 10:38pm UTC](https://www.ruby-forum.com/t/hash-expecting-tassoc/181625/3 "2010-01-14T22:38:14Z")

</div>

On 14 Jan, 21:28, Phillip G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > :rushes =\> “#{website\_root}/gallery/home.do”, :rt\_footage  
> > =“#{website\_root}/gallery/home/royaltyfree.do”  
> > }
> 
> :rt\_footage =“#{website\_root}/gallery/home/royaltyfree.do”  
> ^^^  
> The last key-value pair is “just” an “=”, and not the expected “=\>”.
> 
> –  
> Phillip G.

Apologies for being an idiot

---

<div class="post-metadata">

**Author:** ![aidy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@aidy](https://www.ruby-forum.com/u/aidy)\
**Post date:** [January 14, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/hash-expecting-tassoc/181625/4 "2010-01-14T22:41:44Z")

</div>

On 14.01.2010 22:36, aidy wrote:

> Apologies for being an idiot

Don’t you worry. 🙂

I’ve noticed that all other key/value pairs have a space around the =\>,  
and the last one didn’t. So, your typo was drowned in the noise, as it  
were.
