So you have a restangular collection and you want to remove an element from it, after you've successfully deleted...
If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...
If you want to do JavaScript-style camelization, ActiveSupport's String#camelize method can actually help you out. Simply pass...
If you come across an (older) application that is using Prototype instead of jQuery, you may often see events bound...
When you, as a developer, look at the choices used to build a particular application, you’re blown away at...
Batman is an alternative Javascript MVC with a similar flavor as AngularJS, but a lot less features and geared towards...
If you are trying to inspect timings in JavaScript, you can use console.time and console.timeEnd which will write to your...
Article about implementing authentication (current_user) and authorization (access rights) in AngularJS. Has an surprising amount of practical and understandable...
I had to deal with JavaScript Undefined Error while accessing a specific CKEditor instance to fill in text. Ensure everything...
Ask before leaving an unsaved CKEditor Vanilla JavaScript way, but removes any other onbeforeunload handlers: $(function(){ document.body.onbeforeunload = function() { for(editorName...
When you are working with Backbone models and inheritance, at some point you want to overwrite inherited methods but call...
RulersGuides.js is a Javascript library which enables Photoshop-like rulers and guides interface on a web page Also available as...
Crazy hack. Might be useful one day. The code required has since been extracted into a library.
Clever hack to allow user interaction without Javascript (by using radio buttons and selecting on :checked).
I had a huge MySQL dump that took forever (as in: days) to import, while I actually just wanted to...
You might sometimes use self to capture the context of this before it is destroyed by some function. Unfortunately self...
Opal is a source to source ruby to javascript compiler, corelib and a runtime implementation that currently passes 3000 rubyspecs...
TLDR: This card explains which threads and processes interact with each other when you run a Selenium test with Capybara...
Search engines, such as Google and Bing are engineered to crawl static web pages, not javascript-heavy, client-side apps...
We proudly release our safe_cookies middleware into public beta and just published it on Github. Features are:
So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...
You might not know that Rails disables CSRF protection in tests. This means that if you accidentally forget to send...
Copy the attached file to features/support. This gets you a convenience method: Capybara.javascript_test? Is true for Selenium, capybara-webkit...