There is really not a smart answer to this, at least as it pertains
to Rails, besides that Rails is simply inconsistent on this matter in
many cases. This is mostly for historical reasons.
However, here is a good explanation of Symbols in general. This is a
common question, as you can probably imagine: http://onestepback.org/
index.cgi/Tech/Ruby/SymbolsAreNotImmutableStrings.red
However, here is a good explanation of Symbols in general. This is a
common question, as you can probably imagine: http://onestepback.org/
index.cgi/Tech/Ruby/SymbolsAreNotImmutableStrings.red
Thank you for posting this. I’ve wondered about this many times, and
this is the best explanation I’ve seen.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.