If you have several submit elements (inputs or buttons with type="submit") that each cause different things to happen (e.g...
Find conditions for scopes can be given either as an array (:conditions => ['state = ?', 'draft']) or a hash (:conditions => { 'state' => 'draft...
In modern Rails versions you can also use ActiveRecord's pluck method. User.active.pluck(:id) => [1, 5, 23, 42]
You should test the callback methods and its correct invocation in two separate tests. Understand the ActiveRecord note before you...
Captify is a plugin for jQuery written by Brian Reavis (@brianreavis) to display simple, pretty image captions that appear on...
WMD is a simple, lightweight HTML editor for blog comments, forum posts, and basic content management. You can add WMD...
The box shadows created rendered in IE by CSS3PIE look darker and are blurred differently than in browsers that render...
The state_machine gem ships with a scope with_state. This scope has some problems in complex queries or scope...
When you need to add a event listener to hundreds of elements, this might slow down the browser. An alternative...
When deploying Rails applications you might have noticed that JS and CSS are not cached by all browsers.
With this plugin, you can create a scalable tooltip by just using a single background image for the tooltip body...
Prototip allows you to easily create both simple and complex tooltips using the Prototype javascript framework. Please note: "Permission to...
Use this if you want to show or hide part of a form if certain options are selected or boxes...
traits.js is a minimal, standards-compliant trait composition library for Javascript.
PaintbrushJS is a lightweight, browser-based image processing library that can apply various visual filters to images within a web...
String manipulation extensions for the Underscore.js javascript library.
Currently not possible as the linked .htc file contains JavaScript which is not explicitly called. The developers are working on...
Compress and obfuscate Javascript code online completely free using this compressor.
This may be awkward to set up, but will work once you're done. Fun facts:
This note shows how to merge an ugly feature branch with multiple dirty WIP commits back into the master as...
When you include a non-existing Javascript file, you probably won't notice it during development. But with caching active...
JSViz makes it easy to create dynamic 2D views of information. Practical applications include network graphs, navigation, and other dynamic...
The Sexy Curls jQuery Plugin is an open-source jQuery plugin by Elliott Kember which lets you share in the...
JSMin is a filter which removes comments and unnecessary whitespace from JavaScript files. It typically reduces filesize by half, resulting...