Like you know from "How to tell ActiveRecord how to preload associations (either JOINs or separate queries)", you can tell...

TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...

When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...

clipboardjs.com

We used zeroclipboard.js in some of our projects but now we switched to clipboard.js because it does not rely on...

github.com

Closure_tree lets your ActiveRecord models act as nodes in a tree data structure. This promises a few improvements over...

api.rubyonrails.org

Instantiating ActiveRecord objects comes expensive. To speed up things, you can choose a more direct way to talk to your...

api.rubyonrails.org

When working with custom transactions and use ActiveRecord::Rollback you may encounter unexpected behaviour if you try to roll back...

You can have a command repeatedly executed and the output displayed. This is useful e.g. for monitoring file system changes...

If you want to find the commits that touched a specific text in a file, use git log -S 'text...

makandra dev
icomoon.io

Icomoon.io offers a free app to build custom icon webfonts. It offers downloads as webfont set (.eot, .ttf, .woff, .woff2...

#reverse_order does not work with complex sorting constraints and may even silently create malformed SQL for rails < 5.

davidverhasselt.com

Rails 5 / 6 / 7 Method Uses Default Accessor Saves to Database Runs Validations Runs Callbacks Updates updated_at/updated_on Respects Readonly...

1. Sometimes you have search entries in the autocomplete of the address bar, which are higher weighted than your bookmarks...

You might get the above error message when cloning certain git repositories (for example the rails repository). It indicates that...

github.com

We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...

Same requests are recorded only once in vcr. Replaying a test fails, if you trigger the same request multiple times...

blog.bigbinary.com

Rails 5 migration classes look like this now: class CreateUsers < ActiveRecord::Migration[5.0] Mind the [5.0] at the end.

api.rubyonrails.org

ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information...

You know those helper methods that just render some HTML but look weird because of content_tags all over the...

github.com

We have a new gem Minidusen which extracts Dusen's query parsing and LIKE query functionality. Minidusen can no longer...

github.com

If you were using Dusen for its query parsing and LIKE queries, we recommend to migrate to Minidusen, which extracts...

Capistrano is by default configured to exclude the gems of the groups development and test when deploying to the stages...

You want Spring for super-fast binstubs like bin/rails or bin/rspec which avoid Rails boot time. You want parallel_tests...

makandra dev

Promises are the new way™ to express "Do this, and once you're done, do that". In contrast to callbacks...