Posted over 4 years ago by Arne Hartherz.

When a Rails controller action should handle both HTML and JSON responses, do not use request.xhr? to decide that. Use...

Posted over 6 years ago by Thomas Eisenbarth. techblog.netflix.com

You login to a Linux server with a performance issue: what do you check in the first minute? uptime

Posted over 2 years ago by Henning Koch. matthewphillips.info

A while ago I tweeted a thread about how a small JavaScript snippet, one that can fit in a single...

Posted over 9 years ago by Tobias Kraze.

JavaScripts and CSS should be minified for production use. In Rails 3.1+ the asset pipeline will take care of this...

Posted over 4 years ago by Henning Koch.

When your public-facing application has a longer downtime for server maintenance or long migrations, it's nice to setup...

Posted over 2 years ago by Emanuel De.

Unicorn allows you to specify the maximum number of workers. In development this could be useful if you use a...

Posted over 2 years ago by Emanuel De.

The bin/webpack-dev-server command is not as smart as e.g. rails server, where it shows the proper fix within the error...

Posted over 2 years ago by Emanuel De.

This collection contains some useful design resources for developers. Many of them were mentioned in the Refactoring UI tutorials.

Posted almost 10 years ago by Arne Hartherz.

When deploying, Capistrano puts a REVISION file into your application's release directory. It contains the hash of the commit...

Posted over 2 years ago by Florian Leinsinger. github.com

I got this error after upgrading Ruby from 2.4.5 to 2.6.4 when I opened the Rails console - rails server still...

Posted almost 10 years ago by Henning Koch.

If you're suffering from a huge de.yml or similiar file, cry no more. Rails lets you freely organize your...

Posted about 5 years ago by Daniel Straßner.

This is not an issue in newer versions of HAML (starting with 5.0.0), as the ugly-option was removed...

Posted almost 3 years ago by Tobias Kraze.

If you use webpacker in your Rails application, and you have completely disabled Sprockets, you might get the following error...

Posted almost 3 years ago by Arne Hartherz.

Capistrano automatically logs each (successful) deployment into a file on your application servers. It is located at the root of...

Posted over 10 years ago by Arne Hartherz.

Basically, you now need to know if your project uses a "real" time zone or :local, and if config.active_record.time_zone...

Posted almost 5 years ago by Arne Hartherz.

Rails supports time zones, but there are several pitfalls. Most importantly because Time.now and Time.current are completely different things and...

Posted almost 3 years ago by Tobias Kraze.

Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...

Posted almost 3 years ago by Judith Roth.

The issue in this card can occur if the node_modules directory is checked into your Git repository. We usually...

This website uses short-lived cookies to improve usability.
Accept or learn more