Put the attached file to config/initalizers to ignore some fields for rejecting nested records (e.g. hidden input fields).

You might have a table without a primary key set in MySQL. You can fix this by adding a primary...

codeka.com.au

For reasons that completely escape me, MySQL 5.x limits UTF-8 strings to U+FFFF and smaller.

Like in any language, a FLOAT will eventually corrupt data due to rounding errors. Please use DECIMAL, which has well...

If you get this error while trying to resize an openstack instance: # nova resize fooinstance 16 --poll ==> /var/log/nova/nova-scheduler.log <==

I had a huge MySQL dump that took forever (as in: days) to import, while I actually just wanted to...

dev.mysql.com

A MySQL DECIMAL column is used when it is important to preserve exact precision. It takes two parameters, where...

TLDR: This card explains which threads and processes interact with each other when you run a Selenium test with Capybara...

tl;dr: Using has_many associations with a :through option can lead to lost or duplicate records. You should avoid...

Assert rmagick provision ... Gemfile gem 'rmagick', '2.13.2' # at this moment the latest stable version config/initializer/carrierwave.rb require 'carrierwave/processing/rmagick' ... and define a...

Say you have a User with a Carrierwave attribute #avatar: class User < ActiveRecord::Base mount_uploader :avatar, AvatarUploader end

stackoverflow.com

When you want to find out the data type of an attribute, you can just use ActiveRecord's columns_hash...

dev.mysql.com

Usually our mysql queries are not case sensitive. In order to query case sensitive, you can use the mysql COLLATE...

Whenever you create a table from a database migration, remember to add updated_at and created_at timestamps to that...

Ubuntu has a package mysql-sandbox that lets you install multiple MySQL versions into your user home: Install mysql-sandbox...

Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...

It is good programming practice to Don't Repeat Yourself (or DRY). In Ruby on Rails we keep our code...

I recently experienced the error ActiveRecord::StatementInvalid: Mysql2::Error: closed MySQL connection. Apparently this happens when there is a timeout...

So you're switching to PostgreSQL from MySQL? Here is some help... General hints on PostgreSQL \? opens the command overview...

rubydoc.info

Preface: Normally, you would not need this in integrations tests (probably that's why it is so hard to achieve...

Consul 0.10.0 now allows multiple power mappings for nested resources. When using nested resources you probably want two power

In order to keep the controllers directory tidy, we recently started to namespace controllers. With the :controller option you can...

apidock.com

When you're writing migrations that do more than changing tables (like, modify many records) you may want some output...

makandracards.com

So you're hunting down a regression (or just a bug) and want to use git bisect to find out...