ActiveRecord gives you the :include option to load records and their associations in a fixed number of queries. This is...
Since version 1.5 RubyGems requires at least Ruby 1.8.7. The last one working with Ruby 1.8.6 was RubyGems 1.4.2.
It is common in Rails 3.0 applications that you want to provide default views for a group of controllers. Let...
If you're using jQuery, you need to update to 1.5.1 to get Internet Explorer 9 to work.
At times, it might be unavoidable to have different CSS rules for Internet Explorer than for sane browsers. Using Sass...
The information in this card is only relevant for Rails 2.3-era apps. This note gives a quick introduction into...
Liquid Canvas is a JavaScript library which allows you to draw inside an HTML canvas element with an easy yet...
blueprint is DevStructure’s workhorse tool that looks inside popular package managers, finds changes you made to configuration files, and...
The shell variable PS1 holds your bash prompt. You might want to change it to serve your needs best. Here...
With SNI, you can have many virtual hosts with HTTPS sharing the same IP address and port, and each one...
Pie sometimes does not properly redraw elements upon changes. This often happens when the change comes from somewhere further up...
Install OpenSSH Server: sudo apt-get install openssh-server To check if the server is running you should get no...
Around the time in my life when I stopped ordering drinks made with more than one ingredient, I was woken...
After updating your RubyGems, you will probably not be able to run Capistrano any more, but receive an error similar...
RubyGems 1.6.0 has undergone some changes which may cause Rails 2.x applications to break with an error like this...
Note: For PostgreSQL you should use advisory locks. For MySQL we still recommend the solution in this card.
This tool is used on our application servers (and called when deploying) but it also works locally. Just call dumple...
Note that this sounds good but is not good at all when hooking tasks on cap deploy (see this article...
In order to bring up a textual description of a Capistrano task you can say cap -e taskname ... where taskname...
When you use the send_file method to send a local file to the browser, you can save resources on...
You know Firebug as a Firefox extension but there is also a "Lite" version which runs purely off JavaScript.
The idea is this: you take a job that you'd rather not do manually, and describe it to babushka...
This might be due to AppArmor denying the MySQL server access to most of the filesystem. You can instead use...
In case https://www.rubydoc.info/ is to slow or offline, you can also read a gem documentation offline. Start a server...