Quantcast
Channel: MikeBethany.com »» Coffeescript
Viewing all articles
Browse latest Browse all 2

CoffeeScript from any View in Ruby on Rails

$
0
0
The Problem You’ve got a CoffeeScript in your assets/javascript folder and you want to call it from one of your views. When you try, you get a JavaScript error. This is because CoffeeScript wraps your code in an immediate function, thereby keeping the global namespace clean. The Solution You could add your method directly to... Read More

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images