Rails configuration madness

Rails configuration madness

General configuration is always needed in an application. Sometimes this can range from "On what domain I'm I running?" to "Where is that other service located?". Providing a Rails application with configuration during boot can be quite confusing so let's go over our options. Rails config.x blackhole Guess what our favorite framework has support to save configuration in a read more »

Tuxedo: 150 LOC Presenter Logic

Tuxedo: 150 LOC Presenter Logic

TL;DR Tuxedo a gem that implements Decorator/Presenter pattern in 150 LOC. Presenters, Decorators, view helpers,... all names that try to do the same thing. Keep logic out of your views where it's difficult to test and promote reuse of helpers. The earliest mention of Presenter came from Jay Fields in a blog post titled: Rails: Presenter Pattern created read more »

Performance/Load testing with Jmeter/Rails

Performance/Load testing with Jmeter/Rails

At playpass we work with very large international festivals and event organizers. To name a few: Rock Werchter, Graspop, Bime, Splash, Al Rumbo, Melt, Cruilla,... This translates in an interesting usage profile. During the festival we have very high loads where everything must work perfectly, while in between festivals we have almost no load/user activity. The pressure is really read more »