Tuesday December 1 1507
IdeaBox PSA
- http://jsbin.com/nuhuyurami/4/edit?js,output
- underscore.js #template)[http://underscorejs.org/#template
- in application.js, with the asset pipeline, it will first require jQuery and then
tree .
- This means that the Rails asset pipeline will take all your JavaScript and jam it all together into one massive file
- The compiled file is required in
app/views/layouts/application.html.erb
and therefore available to you anywhere (whether you like it or not) in your application
Array prototype methods
- https://github.com/mdn/advanced-js-fundamentals-ck
- https://github.com/mdn/advanced-js-fundamentals-ck/tree/gh-pages/tutorials/01-array-prototype-methods
- https://gist.github.com/stevekinney/98fb8a6e62bfbd959fb2
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/prototype