When learning rails I am often confused when in some scenarios a colon is placed before a word and on other occasions it is placed after the word. I have been reading and rereading to try an understand this better and so far have determined that when a colon is placed before the word it is a symbol.
I thought I understood this until I read "Agile Web Development with Rails 4 (Facets of Ruby), page 56".
Am I correctly understanding that a symbol has a colon before its name even when used as the key in a hash however there is an alternative syntax that places the colon after the symbol name in a hash?