This is quite an edge case, and appears like a bug in Rails (4.2.6) to me. Update: This is now...

You can download .gem files using gem fetch: gem fetch activesupport consul This will produce files like active-support-5.0.0.gem and consul-0.12.1.gem...

Processes in Linux might be put into Swap ("virtual memory") occasionally. Even parts of a single process might be removed...

jakearchibald.com

The way that Javascript schedules timeouts and promise callbacks is more complicated than you think. This can be the reason...

makandra dev

Have you ever mistaken one Rails environment for another? The attached helper will help you to never do it again...

to create a Gallery that has a name and has_many :images, which in turn have a...

jqueryui.com

UI sortable helps reordering items with drag 'n drop. It works quite fine. Proven configuration for sorting table rows

The attached ImageLoader helper will start fetching an image and return an image that is resolved once the image is...

When you run rake db:rollback and nothing happens, you are probably missing the latest migration file (or have not...

github.com

Adds missing native PostgreSQL data types to ActiveRecord and convenient querying extensions for ActiveRecord and Arel for Rails 4.x...

guides.rubyonrails.org

ActiveRecord offers an explain method similar to using EXPLAIN SQL statements on the database. However, this approach will explain all...

blog.skylight.io

Helix allows you to implement performance-critical code of your Ruby app in Rust, without requiring glue code to bridge...

makandra dev
github.com

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...

OAuth requires a set of params to be carried along requests, among which a nonce. Some libraries pass these along...

makandra dev
robots.thoughtbot.com

When creating an index using CREATE INDEX, Postgres will create a B-Tree type index by default. The B-Tree...

jQuery's deferred objects behave somewhat like standard promises, but not really. One of many subtle differences is that there...

You can find out about disk space usage of all tables within your database by running this: SELECT table_name...

github.com

Stackprof is a sampling call-stack profile for Ruby 2.1+. Instead of tracking all method calls, it will simply collect...

If you are on a Linux shell and want to open a file with whatever default application is configured for...

Our preferred way of testing ActiveRecord is to simply create/update/destroy the record and then check if the expected behavior has...

Validations should be covered by a model's spec. This card shows how to test an individual validation. This is...

makandra dev

Cause logstaglia is so cool you may want to record a video. We're lucky: Logstalgia has a parameter for...

stackoverflow.com

From Rails 3.0.9, there is a method Hash#to_query that will turn a Hash into a query string: