hash /expecting tASSOC/

A

aidy

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
 
P

Phillip Gawlowski

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 "=>".
 
A

aidy

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

Apologies for being an idiot
 
P

Phillip Gawlowski

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top