SudoSlider is a simple yet powerful content slider that makes no (or very few) assumptions about your markup and is...
The most obvious way to use spring is to call it explicitly: spring rails console spring rake db:migrate...
When you cannot make Selenium trigger events you rely on (e.g. a "change" event when filling in a form field...
As you know, assignable_values does not invalidate a record even when an attribute value becomes unassignable. See this example...
EdgeRider 0.3.0 adds support for Rails 4.1 and Ruby 2.1. It forward-ports ActiveRecord::Base.scoped to Rails 4.1.
When you have a string containing umlauts which don't behave as expected (are not matched with a regexp, can...
jQuery plugin that makes it easy to dynamically add and remove records when using ActiveRecord's nested attributes.
ActiveRecord caches results of SQL queries. If you want to discard the cached results for one model, you can call...
I use this to simulate the (non-existing) :last-letter CSS pseudoclass, e. g. to insert a tombstone at the...
When using @media CSS queries, Internet Explorer 8 and below will fail to respect them. Though there are several options...
Edge Rider gives your relations a method #origin_class that returns the class the relation is based on.
Spring is a Rails application preloader. When debugging e.g. the rails gem, you'll be wondering why your raise, puts...
Programatically invoke Rails generators Require the generator, instantiate it and invoke it (because generators are Thor::Groups, you need...
When you want the table headers to always stay around (e.g. because that table is huuuge), use the code below...
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...
Now you can say: class Song < ActiveRecord::Base attr_accessor :virtual_attribute assignable_values_for :virtual_attribute do
If you come across an (older) application that is using Prototype instead of jQuery, you may often see events bound...
Declare an enum attribute where the values map to integers in the database, but can be queried by name.
MariaDB 10 includes numerous innovations developed with and for web-scale players like Google, Fusion-IO and Taobao such as...
When you, as a developer, look at the choices used to build a particular application, you’re blown away at...
By default, Rails' validates_uniqueness_of does not consider "username" and "USERNAME" to be a collision. If you use MySQL...
Put the attached file to config/initalizers to ignore some fields for rejecting nested records (e.g. hidden input fields).
When you use a belongs_to or has_many macro you might be surprised that the methods that it generates...