Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Mark Bates's Profile

GitHub User: markbates

Site: http://www.metabates.com

Comments by Mark Bates

Avatar

Just a heads up, you don't need to do this:

coffeescript
@Product = Product

For the Product class to be globally available. You can combine that into the actual definition of the class, like such:

coffeescript
class @Product
  # etc...