Posted about 6 years ago by Arne Hartherz.

Sometimes you just want to have a small web server that serves files to test something. Serve the current directory...

Posted almost 7 years ago by Henning Koch.

Web applications can be used by multiple users at the same time. A typical application server like Passenger has multiple...

Posted about 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 about 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 about 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 almost 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 Daniel Straßner.

Nowadays it is fairly easy to intercept and modify mails globally before they are sent. All you have to do...

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 about 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 over 9 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 almost 9 years ago by Henning Koch.

validates_uniqueness_of is not sufficient to ensure the uniqueness of a value. The reason for this is that in...

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 over 9 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 almost 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 over 11 years ago by Henning Koch. github.com

An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...

Posted over 2 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...

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