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...
MuPDF is a PDF reader that renders very quickly, yet still correctly. It supports PDF 1.7 and all the fancy...
So you want your Ruby script to install missing gems instead of dying? Take this method: def installing_missing_gems...
This is a great tutorials for beginners and intermediate AngularJS developers. It covers a lot of ground, including routing and...
When your Rails controller action responds with only a simple text, render text: 'Hello' may not be what you want...
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...
The error unexpected 'x' after 'DESCENDANT_SELECTOR' (Nokogiri::CSS::SyntaxError) (where x may be basically any character) occurs when the...
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...
If you get this error when you try to resize an OpenStack instance: # nova resize example 23 --poll
There are 3 built-in file descriptors: stdin, stdout and stderr (std=standard). (You can define your own, see the...
Create, or edit your ~/.irbrc file to include: require 'irb/ext/eval_history' # was 'irb/ext/save-history' for versions prior to Ruby 3.3 IRB.conf[:SAVE...
config.action_controller.action_on_unpermitted_parameters enables logging or raising an exception if parameters that are not explicitly permitted are...
quiet_assets helps with disabling asset pipeline log messages in the development log. When the gem is added, asset pipeline...
When using @media CSS queries, Internet Explorer 8 and below will fail to respect them. Though there are several options...
If you once had HTTP Strict Transport Security enabled for a domain, and you want to disable it again, you...
Edge Rider gives your relations a method #origin_class that returns the class the relation is based on.
React.js is a relatively new Javascript templating engine that has two-way-bindings like AngularJS or Batman. The interesting idea...
Spring is a Rails application preloader. When debugging e.g. the rails gem, you'll be wondering why your raise, puts...
MenuetOS is an Operating System in development for the PC written entirely in 32/64 bit assembly language. Menuet64 is released...
Programatically invoke Rails generators Require the generator, instantiate it and invoke it (because generators are Thor::Groups, you need...
docopt helps you define interface for your command-line app, and automatically generate parser for it. docopt is based on...