The rack-contrib gem brings a JSONP middleware that just works™. Whenever a JSON request has a callback parameter, it...
TLDR: When you put CSS rules into a partial and import that partial multiple times, the CSS rules will be...
Sometimes huge refactorings or refactoring of core concepts of your application are necessary for being able to meet new requirements...
A comprehensive introduction to sending HTML emails. Intro: HTML email: Two words that, when combined, brings tears to a developer...
Exercise 1: XML On the start page of your Movie DB, show the title of a random movie that is...
Adopting legacy Rails apps Talk to your mentor about how we're approaching applications that are either old or abandoned...
Put the following into config.ru in your Rails root folder: # Require your environment file to bootstrap Rails require ::File.dirname(__FILE...
When testing your command line application with Aruba, you might need to stub out other binaries you don't want...
We used zeroclipboard.js in some of our projects but now we switched to clipboard.js because it does not rely on...
In order to have monitoring for Sidekiq (like queue sizes, last run of Sidekiq) your application should have a monitoring...
This might be relevant for us since we're often managing customer documents in our apps. I played around with...
VCR lets you configure how it matches requests to recorded cassettes: In order to properly replay previously recorded requests, VCR...
We often use VCR to stub external APIs. Unfortunately VCR can have problems matching requests to recorded cassettes, and these...
SVG is an acronym for "scalable vector graphics". SVGs should be used whenever an image can be described with vector...
1. Sometimes you have search entries in the autocomplete of the address bar, which are higher weighted than your bookmarks...
Same requests are recorded only once in vcr. Replaying a test fails, if you trigger the same request multiple times...
There is no build in functionally in jQuery and Prototype to extract params from a url. You can use this...
Sometimes you might need to nest a git-project inside another git-project. The right strategy is to use submodules...
Promises are the new way™ to express "Do this, and once you're done, do that". In contrast to callbacks...
There's no user interface to give an AWS IAM user read/write access to a selected list of S3 buckets...
Ruby's __FILE__ keyword returns the path to the current file. On popular for this are Ruby binaries: #!/usr/bin/env ruby...
We're using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not...
Resources Rails Guide: Internationalization API Guide to localizing a Rails application Locale-aware helpers in ActionView::Helpers::NumberHelper
By convention, common protocols use a defined port, like 80 for HTTP or 443 for HTTPS. You can use nmap...