This is quite an edge case, and appears like a bug in Rails (4.2.6) to me. Update: This is now...
to create a Gallery that has a name and has_many :images, which in turn have a...
UI sortable helps reordering items with drag 'n drop. It works quite fine. Proven configuration for sorting table rows
When you run rake db:rollback and nothing happens, you are probably missing the latest migration file (or have not...
Adds missing native PostgreSQL data types to ActiveRecord and convenient querying extensions for ActiveRecord and Arel for Rails 4.x...
ActiveRecord offers an explain method similar to using EXPLAIN SQL statements on the database. However, this approach will explain all...
This gem gives you a rake task db:seed:dump do create a db/seeds.rb from your current database state.
Instead of using this hack you might want to use MariaDB 10.x which can work with both old and...
You can find out about disk space usage of all tables within your database by running this: SELECT table_name...
If you want to perform a failover on another haproxy backend server this is the way you should do it...
Our preferred way of testing ActiveRecord is to simply create/update/destroy the record and then check if the expected behavior has...
Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...
Using Scenic, you can bring the power of SQL views to your Rails application without having to switch your schema...
Ever wondered how you can create a simple table output in bash? You can use the tool column for creating...
SELECT pg_database.datname as "database_name", pg_database_size(pg_database.datname)/1024/1024 AS size_in_mb FROM pg_database ORDER...
PostgreSQL offers a really handy field type: json. You can store any JSON there, in any structure. While its flexibility...
rack-mini-profiler is a powerful Swiss army knife for Rack app performance. Measure SQL queries, memory allocation and CPU...
If you have many connections to your MySQL or MariaDB (as we have) you might want to filter the list...
I recommend to go straight to 2.1.5+ without intermediate steps. Otherwhise you burden yourself with unnecessary work of encoding problems...
Table of contents of the linked article: What are Web Fonts? Advantages of Web Fonts Disadvantages of Web Fonts
PostgreSQL's array data type is pretty useful, but manipulating values of arrays can be awkward because of its syntax...
Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...
What is a Cookie? Google it if you do not know. How are cookies transferred between your browser and...
Some tasks in a web application are better not done live when a user request a page, but in the...