Sharing the Code

Programming stuff that might be useful to others

Tag: CoffeeScript

CoffeeScript setup in Rails

I’ve just started using CoffeeScript with JQuery and Rails and I needed some system to organize my code. I’ve put all my classes and global variables in an app namespace, lets call it MyApp and for each controller I have a class and within that I have static methods for each action that is only run when that action is run.

Read more