To show the collation of your tables you have to login to the MySQL console and execute SHOW TABLE STATUS...
You can convert git commits into patch files. Those can be used to apply to a different repository [1] or...
First keep in mind that :dependent => :destroy hooks into before_destroy. So when you use other before_destroy callbacks the...
Using the jQuery adapter breaks the built-in save function of CKEditor. Phenomenon: The page is submitted correctly, but the...
The Rails logger will store its content in a buffer and write it into the file system every 1000 lines...
When adding a new field to your model's database table, don't set any defaults in the database.
Single step and slow motion for Cucumber scenarios can come in handy, especially in @javascript scenarios. # features/support/examiners.rb AfterStep('@slow_motion...
In order to open a MySQL shell without the need to enter user and password, you can say the following...
The technique described in this card has an important caveat: The result of GROUP_CONCAT is truncated to the maximum...
You can use heredoc to avoid endlessly long lines of code that nobody can read. Heredoc strings preserve linebreaks and...
When you run rake db:create and get this error message Couldn't create database for {"encoding"=>"utf8", "username"=>"root...
Most likely you run rake and your code is causing an exception which is not the one shown in your...
Here is a way to create a duplicate of one database, with all its tables and their data, under a...
There is a bug in Rails 3's dbconsole script, which makes the following command open a database console for...
Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...
jQuery as new default Javascript library, streaming response support, attr_accessible with roles, prepared statements, easier migrations.
While it might seem trivial to implement an invoice that sums up items and shows net, gross and vat totals...
You've been there: A form cannot be submitted, but you don't see a validation error because the field...
I recently browsed through the ActiveSupport code and found some nice stuff I did not know about: ActiveSupport::Callbacks ActiveRecord...
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...
Open up your "Base File.sublime-settings" (Preferences Menu → File Settings – User) in Sublime Text 2. Add entries for font_face...
We have a big flat screen TV (Samsung LE46c650l1kxxu) in our conference room. Configuring it properly, we were encountering some...
If you use Amazon AWS cloud services you definitively want to utilize software raid for IO intensive stuff such as...