The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Fix non set locale in path helpets in RSpec test files
This filter hook set the default locale for the filtered examples to get the correct path helpers. [more inside]
Creating "Reducing Enumerable - An Illustrated Guide"
What does it take to make an illustrated conference talk full of cartoon lemurs and whimsy? Walk through my process of preparing my talk for Southeast Ruby with me to find out! [more inside]
The Case of the Flaky Test Suite
In this story, Jason Swett of The Ruby Testing Podcast discusses the pitfalls of external dependencies in your test suites, and how to avoid them on the Honeybadger blog.
Back to the primitive - testing with simplicity
Our tests (same as our code) needs to be maintained and clean. Therefore we often try to reuse parts of application in the tests. This may lead to several problems that we may get away with if we just tested the most primitive objects we can like “Strings, Integers” etc. [more inside]
Run only recently modified specs
do you want to run only recently changed specs? Here is a simple wrapper over “rspec” command can simplify your life.
Keep your API in Shape with Blueprint and JSON-Matchers
Keeping your API, API documentation, and API tests all sync can be a daunting task, here I cover how to use API Blueprint and JSON-Matchers to ease the process. Keep your API in Shape with Blueprint and JSON-Matchers
Should you build or buy microservices?
Many developers want to build a microservice because they can, but should they? This article looks at the costs of building versus buying to help CTOs make thoughtful decisions
Orbacle - new language server for ruby
Language server for simple editors (vim, emacs, etc.) allowing for smart help for programmers, like precise goto-definition. [more inside]
Passenger 5.3.4: fixes crash on startup for BSD
Version 5.3.4 of the Passenger app server for Ruby, Node.js, Meteor and Python has just been released. This release contains fixes for a bug that crashed Passenger on BSDs, as well as the handling of chunked bodies when PassengerBufferUploads is off. Release notes and installation instructions:
Client-Side Validation Powered By ActiveRecord
How to expose validation logic from the server to power client-side validations:
Building a Testing Framework Similar to RSpec in Ruby
A guide to building and understanding a testing frameworks like RSpec [more inside]
Firefox needs some more RAM to run your Rails system tests
Just a quick remainer to increase memory limits for system tests.
Generating Random Numbers in Ruby
Random numbers are useful for a variety of purposes such as in gaming, encryption and building simulations. In this article, we’ll look at the various ways you can generate random numbers in Ruby. [more inside]
Trolling in Ruby - Implementing JavaScript-like Maths With Implicit Conversion Hijack
If you’ve ever worked with JavaScript, especially in pre-SPA/pre-frameworks era with just jQuery, you probably had a chance to see an “exotic” maths in action that looks similar to this: [more inside]
Using Rails Encrypted Credentials with Docker
A quick post on how to use rails credentials:edit when developing your Rails apps using Docker containers
ButterCMS vs WordPress: Why Choose Butter
Learn about the WordPress fallacies that lead people to use it as their default CMS experience and why Butter may actually be the ingredient you need.
Static site generator in 20 lines
Super short article about how and why would you want to build your own personal static site generator:
[Podcast] Ruby Rogues - Hiring with Mindaugas Mozūras
In this episode of Ruby Rogues, the panel talks to Mindaugas Mozūras about hiring. Mindaugas is from Lithaunia and has worked at Vinted for the past 6 years, starting as a software developer and is now is the head of engineering there. They talk about why it’s hard to find great developers to hire, the importance of hiring both junior and senior developers, and his blog post A User Guide to Me. They also touch on how you come about writing up job roles, the importance of letting developers think outside of the box, and more! [more inside]
Ruby on Rails Active Storage how to change host for url_for
By default ActiveStorage url points to http://example.com: [more inside]
The Enumerable module in Ruby: Part I
In this article we’re going to explore the following topics:
5 Things I Learned about Google Tag Manager Being RoR Developer
Mistakes are the best way to learn new things. This time I wrote about a few solutions to make integration with Google Analytics (GTM) simpler based on my experience. READ
Rails credentials cheat cheat
Rails introduced “encrypted” credentials from rails version 5.2 in this T.I.L. note I’ll show some tricks and notes around this feature: [more inside]