constant integer with human readable name." (Wei Lie Sho) • “A symbol is the most basic Ruby object you can create. It's just a name and an internal ID.” (The Ruby Cookbook) • “Symbols are immutable, interned strings.” (The Ruby Programming Language) • “Simply, a symbol is something that you use to represent names and strings.” (Kevin Clark) • “A Ruby symbol is the internal representation of a name . . . Other languages call this process 'interning,' and call symbols 'atoms.'“ (1st edition of Pickax) • If you have a background in another programming language this link might be helpful: http://www.randomhacks.net/articles/2007/01/20/13-ways-of-looking-at-a-ruby-s ymbol
in hashes flash[:notice] = "Project has been created." • refer to method names before_filter :find_project, :only => [:show, :edit, :update, :destroy] In General: • Ruby hacker Jim Weirich on when to use a string versus a symbol: “If the contents (the sequence of characters) of the object are important, use a string.” “If the identity of the object is important, use a symbol” • Anytime a string is used over and over. • FYI, Symbols are not garbage collected.
Matsumoto • Ruby Cookbook by Lucas Carlson and Leonard Richardson • First edition of Pickax: http://www.ruby-doc.org/docs/ProgrammingRuby/ • “Understanding Ruby Symbols” by Kevin Clark http://glu.ttono.us/articles/2005/08/19/understanding-r uby-symbols • http://www.ruby-doc.org/docs/ProgrammingRuby/