Explaining Ruby Symbols

Feb 22, 2007

Symbols are just one of those things you use when developing Rails applications without really thinking about it. This means when you actually wonder what the difference is between session[‘user’] and session[:user] you just end up scratching your head.

Kevin Clark has a great post on understanding Ruby symbols that explains it extremely well. Definitely worth reading and bookmarking for future reference.