nicksda.apotomo.de

It's like Paperclip or CarrierWave, but without any automagic integration.

Sometimes you need complex expectations on method arguments like this SomeApi.should_receive(:find).with(:query => '*foo*', :sort => 'timestamp ASC', :limit...

github.com

PDFKit converts a web page to a PDF document. It uses a Webkit engine under the hood...

When using jQueryUI's Sortable plugin (either directly or via Angular's ui.sortable), you might struggle testing your nice drag...

Yesterday, Rails fixed a security issue (CVE-2014-3514) in Rails 4+. It was possible to use .where...

Nearly all jQuery traversal functions ignore elements that are not HTML tags. To work with other type of nodes (like...

ozmm.org

require 'net/http' module Cheat extend self # the magic ingredient def host @host ||= 'http://cheat.errtheblog.com/' end def http @http ||= Net...

makandra dev
github.com

edge_rider is Power tools for ActiveRecord relations (scopes). Please note that some of the functions edge_rider provides have...

When you have an Angular directive that transcludes content, you might want to do something in case there is no...

dev.mysql.com

Directly from the MySql docs: There are three likely causes for this error message. Usually it indicates network connectivity trouble...

TL;DR In blueprints, always wrap associations in blocks. # Broken Task.blueprint(:vacation) do project Project.make(:vacation) hours 8 accounting_method...

Open a MySQL root shell and use this command: PURGE BINARY LOGS BEFORE DATE(NOW() - INTERVAL 3 DAY) + INTERVAL 0...

When making cross-domain AJAX requests with jQuery (using CORS or xdomain or similar), you will run into issues with...

plugins.jquery.com

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...

makandra dev
github.com

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...

github.com

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.