In order to open a MySQL shell without the need to enter user and password, you can say the following...
In case you have sensitive data within your RDS instance, you want to use encrypted connections between your application and...
The technique described in this card has an important caveat: The result of GROUP_CONCAT is truncated to the maximum...
When you run rake db:create and get this error message Couldn't create database for {"encoding"=>"utf8", "username"=>"root...
Here is a way to create a duplicate of one database, with all its tables and their data, under a...
Observed on Rails 2.3 and machinist 1.0.6 Like the title says, when you define the method empty? like in the...
Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...
While it might seem trivial to implement an invoice that sums up items and shows net, gross and vat totals...
This is a bug in Timecop 0.3.4 or lower. You should upgrade to 0.3.5.
When the Ruby parser module of Ruby-GetText comes across a file in one of its search directories (e.g. lib/scripts...
Do you wonder which databases are actually taking up how much space but only have one huge ibdata1 in your...
Vim allows recording a batch of commands as a macro. This is handy if you need to do the same...
When you have a program running in a hidden X screen (like with Xvfb for Selenium tests) you may want...
Note: If you are currently working with Ruby 1.8.7 or 1.9.3, we recommend to upgrade to Ruby 2.1 first. From...
We usually generate our commit messages from Pivotal Tracker IDs and titles, like [#15775609] Index view for conflicts
When you do a bitwise copy using the dd tool you will not see any output until it completes or...
Install Ruby from the Ubuntu repository: sudo apt-get install ruby ruby-dev \ ruby is the meta package. If you...
Here are some popular mistakes when using nested forms: You are using fields_for instead of form.fields_for.
When you render a nested form for a Movie which has_many :actors, you want to render the right number...
This Perl script will run diagnostics on your MySQL database and recommend changes to your MySQL configuration.
I pushed a new version of the Cucumber Factory gem. This new release lets you refer to a previously created...
(Rails has a method ActiveRecord::Relation#merge that can merge ActiveRecord scopes. However, its behavior has never been clear, and...
If you want to enforce soft tabs (spaces instead of tabstops) in Vim put this into your ~/.vimrc (Linux) or...
Put the attached file into config/initializers/ to be able to say created_within on any ActiveRecord or its scope chain...