Hash /expecting tASSOC/

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

:rt_footage ="#{website_root}/gallery/home/royaltyfree.do"
            ^^^
The last key-value pair is "just" an "=", and not the expected "=>".

···

On 14.01.2010 22:20, aidy wrote:

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"
  }

--
Phillip Gawlowski

Apologies for being an idiot

···

On 14 Jan, 21:28, Phillip Gawlowski <p...@thimian.com> wrote:

On 14.01.2010 22:20, aidy wrote:

> 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"
> }

:rt_footage ="#{website_root}/gallery/home/royaltyfree.do"
^^^
The last key-value pair is "just" an "=", and not the expected "=>".

--
Phillip Gawlowski

Don't you worry. :slight_smile:

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.

···

On 14.01.2010 22:36, aidy wrote:

Apologies for being an idiot

--
Phillip Gawlowski