Rails 5 migration classes look like this now: class CreateUsers < ActiveRecord::Migration[5.0] Mind the [5.0] at the end.
ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information...
We have a new gem Minidusen which extracts Dusen's query parsing and LIKE query functionality. Minidusen can no longer...
If you were using Dusen for its query parsing and LIKE queries, we recommend to migrate to Minidusen, which extracts...
You want Spring for super-fast binstubs like bin/rails or bin/rspec which avoid Rails boot time. You want parallel_tests...
Promises are the new way™ to express "Do this, and once you're done, do that". In contrast to callbacks...
Sometimes you want to test migrations with production or staging data. Dumping single tables makes sense if a complete dump...
Angular directives with isolate scopes have three different variable binding strategies, of which one is =. Example: # HTML # Coffeescript @app.directive 'panel...
Isolate scopes offer three kinds of variable binding. One of them is &, allowing to bind a property of the isolate...
To check the currently running PG version from your Rails application (e.g. Rails console on your production server), simply do...
When your controller action raises an unhandled exception, Rails will look at the exception's class and choose an appropriate...
PostgreSQL, unlike MySQL, treats strings as case sensitive in all circumstances. This includes comparison with = and LIKE collision detection in...
Here is a symbol of an eight note: ♪ Its two-byte hex representation is 0x266A. This card describes how to...
When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...
Apparently you can pash a second scope to a hash-condition and the whole thing will be evaluated as a...
This is quite an edge case, and appears like a bug in Rails (4.2.6) to me. Update: This is now...
When ActiveRecord child objects are autosaved in Rails.
As announced before, Ruby has introduced a safe navigation operator with version 2.3.0. receiver&.method prevents NoMethodErrors by intercepting method...
PostgreSQL uses the C library's locale facilities for sorting strings: First, all the letters are compared, ignoring spaces and...
The way that Javascript schedules timeouts and promise callbacks is more complicated than you think. This can be the reason...
Have you ever mistaken one Rails environment for another? The attached helper will help you to never do it again...
When you are working with jQuery selectors and collections, many times you want to know if the collection actually contains...
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