Ruby on Rails- :symbols, @iVars and "strings" - oh my!
- by Meltemi
New to Rails and trying to get my head around when/why to use :symbols, @ivars , "strings" within the framework.
I think I understand the differences between them conceptually
only one :symbol instance per project
one @ivar per instance
multiple "strings" - as they are created whenever referenced (?)
Feel free to correct me!
The main confusion comes from understanding the rules & conventions of what Rails expects - where and WHY?
I'm sure there's an "Ah ha!" moment coming but I haven't had it yet...as it seems pretty arbitrary to me (coming from C/Obj-C).
-thx