When a Rails controller action should handle both HTML and JSON responses, do not use request.xhr? to decide that. Use...
You login to a Linux server with a performance issue: what do you check in the first minute? uptime
A while ago I tweeted a thread about how a small JavaScript snippet, one that can fit in a single...
JavaScripts and CSS should be minified for production use. In Rails 3.1+ the asset pipeline will take care of this...
When your public-facing application has a longer downtime for server maintenance or long migrations, it's nice to setup...
Unicorn allows you to specify the maximum number of workers. In development this could be useful if you use a...
The bin/webpack-dev-server command is not as smart as e.g. rails server, where it shows the proper fix within the error...
This collection contains some useful design resources for developers. Many of them were mentioned in the Refactoring UI tutorials.
When deploying, Capistrano puts a REVISION file into your application's release directory. It contains the hash of the commit...
I got this error after upgrading Ruby from 2.4.5 to 2.6.4 when I opened the Rails console - rails server still...
If you're suffering from a huge de.yml or similiar file, cry no more. Rails lets you freely organize your...
This is not an issue in newer versions of HAML (starting with 5.0.0), as the ugly-option was removed...
If you use webpacker in your Rails application, and you have completely disabled Sprockets, you might get the following error...
Capistrano automatically logs each (successful) deployment into a file on your application servers. It is located at the root of...
Basically, you now need to know if your project uses a "real" time zone or :local, and if config.active_record.time_zone...
Rails supports time zones, but there are several pitfalls. Most importantly because Time.now and Time.current are completely different things and...
Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...
The issue in this card can occur if the node_modules directory is checked into your Git repository. We usually...