Tutorials


How to translate and localize apps with Rails Internationalization (18n) (Example) | GoRails
Translating and localizing your app is important to make it accessible to users around the world. Rails provides internationalization (I18n) tools to make this easier and it's got a lot of cool tricks available.






How to Improve ActiveRecord Performance with Subquery Caching
Slow database queries are a common performance bottleneck for Ruby on Rails apps. Simplifying a complex query is often not possible due to the underlying business logic. Instead, you can extract parts of a query, cache and reuse them to improve pe...

How to Test Ruby Code That Depends on External APIs
Few things are more frustrating than slow, flaky test suites. You're ready to deploy, wait 20 minutes for CI to run, only to find that a test failure in code you've never touched is blocking you. You dig into the source and find the problem: an ex...