ActiveRecord caches results of SQL queries. If you want to discard the cached results for one model, you can call...

SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...

So you want your Ruby script to install missing gems instead of dying? Take this method: def installing_missing_gems...

toptal.com

This is a great tutorials for beginners and intermediate AngularJS developers. It covers a lot of ground, including routing and...

I use this to simulate the (non-existing) :last-letter CSS pseudoclass, e. g. to insert a tombstone at the...

Since version 34, Chromium/Chrome ignores the autocomplete="off" attribute on forms or input fields. Recent versions of other browser do...

If you parse this Yaml ... yes: 'Totally' no: 'Nope' ... you get this Ruby hash: { true: 'Totally', false: 'Nope' }

You are probably using Ruby 1.8.7 with a too recent versions of Rubygems. Downgrade your Rubygems to the latest version...

makandra dev
tldp.org

There are 3 built-in file descriptors: stdin, stdout and stderr (std=standard). (You can define your own, see the...

Edge Rider gives your relations a method #origin_class that returns the class the relation is based on.

code-experience.com

React.js is a relatively new Javascript templating engine that has two-way-bindings like AngularJS or Batman. The interesting idea...

makandra dev

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

Rubygems can produce lots of deprecation warnings, but sometimes, you cannot fix them. To have a tidy terminal with output...

makandra dev

When you want the table headers to always stay around (e.g. because that table is huuuge), use the code below...

If you want to label things with a color but don't actually care which cholor, you can use the...

So you have a restangular collection and you want to remove an element from it, after you've successfully deleted...

With this command you can initiate an application restart without touching restart.txt. Unlike touching restart.txt, this tool initiates the restart...

getbootstrap.com

List of variables used in Bootstrap. Overwrite to customize your bootstrap application. When you are using bootstrap-sass, simply replace...

linux.die.net

Sometimes you may want to print files from the command line, especially when you have lots of them.

github.com

All the hidden and not hidden features of Git and GitHub.

If you come across an (older) application that is using Prototype instead of jQuery, you may often see events bound...

makandra dev
filippo.io

Enter the hostname of a server to test it for CVE-2014-0160.

wiki.macromates.com

When using TextMate2 with the cucumber bundle, it does not recognize step definitions (e.g. custom_steps.rb) as such but believes they...