I'm trying to define a class in coffeescript, to use it in my rails project. I'm struggling with the syntax for defining CLASS constants and referring to them, this is what I have so far:
class Project
inputFields :
title: '#title'
calculateDataList : [
@inputFields.title
]
but the browser complains with:
Uncaught TypeError: Cannot read property 'title' of undefined
I'm not sure what would be the right syntax here. could anyone help me?
thanks,