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...
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...
Presentation about optimizing Ruby on Rails apps. From Nico Hagenburger (homify's lead frontend developer).
To simulate Rails' to_sentence in your JavaScript application, you can use these few lines of CoffeeScript code: joinSentence = (array...
To check the currently running PG version from your Rails application (e.g. Rails console on your production server), simply do...
We're using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not...
When your controller action raises an unhandled exception, Rails will look at the exception's class and choose an appropriate...
Resources Rails Guide: Internationalization API Guide to localizing a Rails application Locale-aware helpers in ActionView::Helpers::NumberHelper
PostgreSQL, unlike MySQL, treats strings as case sensitive in all circumstances. This includes comparison with = and LIKE collision detection in...
When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...
You can define methods using def or define_method. In the real world, there is no performance difference.
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.
Note: This applies to plain Ruby scripts, Rails does not have this issue. When you work with Ruby strings, those...
Ruby 2.3.0 has been around since end of 2015. It brings some pretty nice new features! Make sure to read...
As announced before, Ruby has introduced a safe navigation operator with version 2.3.0. receiver&.method prevents NoMethodErrors by intercepting method...
Ever needed to use a global variable in Rails? Ugh, that's the worst. If you need global state, you...
Have you ever mistaken one Rails environment for another? The attached helper will help you to never do it again...
As your Rails project grows, you will accumulate a number of small patches. These will usually fix a bug in...
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 have a localized website, you may want to redirect users to their preferred language when they visit the...