12 Aug '13, 11pm

New guest post from @rncrtr on the differences between :symbol and symbol: in #Ruby. #rails

The Difference Between :symbol and symbol: by Chris Oliver I was perusing Twitter today and came across a recent post by @rncrtr about the differences between Ruby 1.8 style and Ruby 1.9 style symbols. You can find his original post at his website here . You may see :symbol and symbol: used interchangeably in rails 3 and later. This was one of the most confusing things to me when I first started developing with ruby and rails until someone on the #rubyonrails irc channel (an excellent resource, by the way) explained it to me. The difference is that a symbol with the colon before it is just a symbol (a variable). You will need a “fat arrow” after it if you are assigning something to it, like this: # does the equals make me look fat? :class => "content" A symbol with the colon after the name is actually the same thing as above, but includes the fat arrow in it, so you don’t ...

Full article: http://gorails.com/blog/the-difference-between-symbol-and...

Tweets

Check out Intridean @bpmarkowitz talking about ...

intridea.com 15 Aug '13, 12pm

Leaving a culinary career behind for a career in tech, Robert has more than 14 years experience building businesses, devel...

We just published our first @GoRails video: An ...

gorails.com 14 Aug '13, 2pm

001 - HTTP Requests The first GoRails episode starts from the very top. Chris and James talk about the different HTTP requ...

How Polar Bears became a symbol for climate change

How Polar Bears became a symbol for climate change

treehugger.com 07 Aug '13, 3pm

Manaugh: Preservation of an entire ecosystem, if you were to follow the letter of the law, would require an absolutely ast...