To show the collation of your tables you have to login to the MySQL console and execute SHOW TABLE STATUS...
To show the MySQL default character set you have to login to the MySQL console and execute SHOW VARIABLES LIKE...
You can convert git commits into patch files. Those can be used to apply to a different repository [1] or...
The solution in this card is based on a stack overflow post by Leventix. If you need to make request...
While 2.0 will include a number of syntax changes, new features and general improvements, mentioned below, it is anticipated to...
First keep in mind that :dependent => :destroy hooks into before_destroy. So when you use other before_destroy callbacks the...
Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...
Given the problem you have a new column postion and that column should be updated for all existing rows with...
Generally for nested forms, a blank form is placed below all other existing object forms. If you would like to...
Defining a custom to_json method for your classes can be useful. Do it properly or you will "randomly" get...
Using git rebase can be painful but luckily you can resort to cheating with git reset and committing anew.
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 colors in Rails log files are helpful when watching them but, since they are ANSI color codes like ^[[4...
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...
There is a new card about how to do this with the new AWS Command Line Interface
features are pre-sold without any option to negotiate what’s important and what may be left out, you inevitably...
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...
whatsmydns.net is an online service that allows you to instantly perform a DNS lookup to check a hostnames current IP...
Consider you have a website vhost listening to www.example.com, redirecting all incoming requests that do not talk about the configured...
ExecJS lets you run JavaScript code from Ruby. It automatically picks the best runtime available to evaluate your JavaScript program...