Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...
Rails includes a way to see what an e-mail will look like. Integration to RSpec All you need to...
Interesting approach to caching responses directly in the HTTP server, based on the value of an individual cookie.
The Angular 1.2 way: # By default, angular returns undefined for invalid attributes which removes # the value from the form field...
The benefit of the Rails asset pipeline is that it compiles your stylesheets and javascripts to a single file, respectively...
The Rails asset pipeline improves delivery of application assets (javascripts, stylesheets, images, fonts). Here are some basic facts about its...
Option 0: Download from the official page (preferred) Open https://googlechromelabs.github.io/chrome-for-testing/ In Section "Stable" > chromedriver / linux64 > Download ZIP from...
A very clever hack to parse a structured URL object is to create a element and set its href to...
Shortener is a Rails Engine Gem that makes it easy to create and interpret shortened URLs on your own domain...
Settings -> Editor -> General -> Smart Keys -> Unindent -> To nearest indent position RubyMine 7.0: Settings -> Editor -> General -> Smart Keys -> Backspace...
Rails migrations allow you to use a change method whose calls are automatically inverted for the down path. However, if...
Upgrading from Ruby 1.8.7 to 2.1.2 took me an hour for a medium-sized application. It involved hardly any changes...
Google Calendar integration into Thunderbird suddenly did not work any more for me. Thunderbird kept asking me for my password...
If you make a gem with Bundler, you will get a rake release task that will instantly publish your gem...
By default, Twitter Bootstrap's print styles include printing links. /* Bootstrap's way of printing URLs */ @media print {
Restangular can make use of $http's built-in response cache. # Cache response for single request Restangular.one('accounts', 123).withHttpConfig...
Firefox 5.0.1, which we were using for most Rails 2.3 projects, does not run on Ubuntu 14.04 any more. Here...
If you have issues with PDFs, fix them like this: pdftk .pdf output .pdf Background I had an issue where...
The asset pipeline changes the paths of CSS files during precompilation. This opens a world of pain when CSS files...
bower-rails is a great solution for managing vendored assets in your Rails app. It feels especially much more convenient...
JavaScript structures that include circular references can't be serialized with a"plain" JSON.stringify. Example: a = { name: 'Groucho' };
So you want to organize your I18n using multiple .yml files but your Rails 4.1 application simply won't use...
There are different ways to run rake: On Rails 4.1+ projects, you have Spring and its binstubs which dramatically improve...