Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

upandnet's Profile

GitHub User: upandnet

Site: http://www.upandnet.com

Comments by upandnet

Avatar

Regarding the difference between

coffeescript
class Mine

@Mine = Mine

and

coffeescript
class @Mine

seems to be local only, that is, that the implicit declaration will not expose Mine in the local scope, which might be a pitfall
at first.

Avatar

Great value as usual, just one question Ryan.

Do you dislike find_or_create (which I could understand BTW) or
maybe think that exists? ... || create! has other merits (like the bangs exception raising behavior).

Cheers
Robert