For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for...
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' };
There are different ways to run rake: On Rails 4.1+ projects, you have Spring and its binstubs which dramatically improve...
We will be installing rbenv and ruby-build from our own fork, not from the Ubuntu sources. Installing rbenv
For server-to-server requests to the Facebook Graph API you can skip requesting an Oauth token, an...
Let's say you have two screens: Show a given project Show a report for all projects Ideally you want...
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...
Restmod creates objects that you can use from within Angular to interact with your RESTful API.
Great gem to consume RSS feeds. I was missing some features on Ruby's RSS::Parser that I found in...
Parses URLs of social networks to extract IDs or screen names. It does not get confused by child routes: you...
When you don't only have a favicon.ico in your project but also PNGs of different sizes and backgrounds, you...
When making cross-domain AJAX requests with jQuery (using CORS or xdomain or similar), you will run into issues with...
Code snippet tested with Rails 2.3 def index # ... if request.xhr? html = render_to_string(:partial => "list", :layout => false) respond_to...
Automagically makes XHR requests work cross-domain by tunneling all communications through an IFRAME on your page.
If your requests blow up in Ruby or CURL, the server you're connecting to might only support requests with...
This card describes how to pass an array with multiple element to a JavaScript function, so that the first array...