Let's say you need to revert a migration that happened a while back. You'd create a new migration...
will_paginate triggers a database query to determine the total number of entries (i.e. to let you display the number...
In MySQL comparing zero to a string 0 = "any string" is always true! So when you want to compare a...
Ever seen this error when using Graticule? Numerical argument out of domain - acos Similarly to the to_sql problem for...
Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more...
Use the command geordi migrate to migrate your databases and to prepare them before running tests. The abbrevation geordi m...
Though Internet Explorer 9 supports the box-shadow CSS property there is a nasty bug which sometimes prevents it from...
When selecting records in a date range, take care not to do it like this: start_date = Date.parse('2007-05...
Basically, you now need to know if your project uses a "real" time zone or :local, and if config.active_record.time_zone...
When internationalizing your Rails app, you'll be replacing strings like 'Please enter your name' with t('.name_prompt'). You...
The SQL code generated by Graticule's spherical distance computation is insufficient and can lead to NULL distances in edge...
Seems like a useful gem for cases where ActiveRecord is overkill but you don't want to do everything by...
Using rename_column, remove_column, etc. more than once in a migration makes that migration run slower than it should...
For performance improvements (and to remove the need for eager loading), the ActsAsTaggableOn gem supports caching your tag lists directly...
When you have objects in your database that hold latitude and longitude and you want to find others that are...
Instead of running all missing migrations on your test database with rake db:migrate RAILS_ENV=test you can also...
Note: This applies specifically to MySQL. In PostgreSQL for example, this is not an issue. If you care about performance...
Clearance is a gem that provides authentication functionality (e.g. login, logout). This note explains, how the clearance login, logout and...
Look here for informations how you can show the MySQL default character set. At first you need the Amazon RDS...
If you want to distribute a 's width equally over its columns, you can use the following CSS property:
Clearfix is a hack to clear floating elements without additional HTML markup. If you only need to support IE8 and...
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...
Given the problem you have a new column postion and that column should be updated for all existing rows with...