I got these warnings while deploying a Rails 3.2 app with asset pipeline enabled: *** [err :: host.tld] find: `/opt/www/hollyapp.com/releases/20120503115342/public/images': No such...
...aka least harmful) submit element before others. NB: If you submit a form via JavaScript none of the buttons' attributes will be submitted...
Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:
If bower complains about a missing node binary, do not install Ubuntu's node package. Instead, you need to create...
In Webkit you can use the HTML5-attribute autofocus: = form.text_field :title, :autofocus => 'autofocus' Here is a jQuery fallback for...
The bin/webpack-dev-server command is not as smart as e.g. rails server, where it shows the proper fix within the error...
By default, only application.js, application.css and all non-JS/CSS files are precompiled into public/assets. If you have asset manifests...
Some browsers define window.event, which will return a copy of the "current" event. However, this is not defined by the...
When running capybara with Chrome you might start seeing frequent "no alert open" errors when trying to interact with browser...
Learn how to create offline applications with service workers. The amazing power of service workers Writing your first service worker...
Using the jQuery adapter breaks the built-in save function of CKEditor. Phenomenon: The page is submitted correctly, but the...
When you include a non-existing Javascript file, you probably won't notice it during development. But with caching active (on production or staging) Rails will write an empty all.js...
This error occurs when passing an object instead of a string to Jasmine's describe(): # Bad describe(HoverClass, function() {...
PhantomJS has no binary builds for Linux, and building it yourself is painful. However, you can install it through npm...
Many jQuery plugins suffer from a good plugin architecture. When you write jQuery plugins you should use the plugin pattern...
First install Node.js / npm. Then you can install Bower through npm: sudo npm install -g bower
...and time-consuming to implement, involving complex sprite images, extra non-semantic markup, large JavaScript libraries, and other lovely hacks...
Lightweight Angular JS directive to upload files Includes polyfills for old IEs. Unfortunately, their auto-loading mechanism may not work...
A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use...
| Chrome | CTRL+Shift+J | | Firefox / Firebug | CTRL+Shift+L |
The rack-contrib gem brings a JSONP middleware that just works™. Whenever a JSON request has a callback parameter, it...
In developing countries like Nigeria, Opera Mini is used by up to 70% of users on mobile.
Great introduction to React.js and the ideas behind it.
Previously the assets group existed to avoid unintended compilation-on-demand in production. As Rails 4 doesn't behave like...