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.
Ruby on AWS Lambda: Layer Dependecies
Part one in a four part series where we explain some of the more interesting aspects and challenges of using Ruby to build a serverless application. In this post, we talk about creating a AWS Lambda Layer with Docker. [more inside]
SJR todos
A fully ajaxified to-do app created with just 9 line of JavaScript thanks to Server-generated JavaScript Responses (SJR). [more inside]
Stimulus Search
Autocomplete example created with Stimulus JS, Ryby on Rails and HTML send over the wire. [more inside]
How to translate and localize your app with Rails internationalization (I18n)
Translating your app requires quite a few changes, but Rails has a lot of nice helpers to make the process a lot more manageable. Learn How to translate and localize your app with Rails internationalization (I18n)
2 ways to test Rails log messages with RSpec
If you don’t need to test log output on a regular basis, you may not find the solutions to be immediately obvious. Here are two ways (that I know of) to use RSpec to test messages sent to the Rails log.
Adding dynamic "getters" and "setters" to Ruby Objects.
Hi! This is my first post here. I created a blog post on creating a dynamic “attr_accessor” for a Ruby object! Figured I’d share with the class!
smart_init gem has been updated to work with Ruby 2.7 without warnings
A simple gem for eliminating Ruby initializers boilerplate code, and providing unified service objects API. It has recently been updated to work seamlessly with Ruby 2.7 [more inside]
Ruby Refinements
Ruby Refinements. Ruby ecosystem allows us to modify or redefine existing class definitions. This is known as Monkey patching.
The very first draft of Rake
30 LOC that changed everything.. rubycademy.com/rake
TimeBoss: Broadcast Calendar navigation made simple
TimeBoss provides you a simple language with which to browse the Broadcast Calendar, a standard Gregorian calendar, and is easily extensible to other custom financial calendars.
Invokable 0.6.0 - Treat classes as curried functions!
Invokable 0.6.0 Brings an improved API for treating classes as curried functions that has now be included in the core module.
How to Avoid Dumb Coding Mistakes (Part II)
Programming for me is less about “getting it right” than “not getting it wrong”. To that end, I’ve documented and categorized the most common dumb mistakes I make, the idea being that awareness of these downfalls is transformed into a mental checklist of considerations for avoiding mistakes. [more inside]
Introduction to Ruby on Rails Patterns and Anti-patterns
Dig into the basics of design patterns and anti-patterns.
Removing unused code with git bisect
What can you do when you find code that is not used anywhere? [more inside]
Our Code Review Etiquette
Code Review is one of the greatest tools we have as software developers to help us improve the quality of our code. It can be incredibly beneficial, but it can also be a source of pain, frustration, and overall, a waste of time instead of a time-saver.
Securely Send Large Files for Free Using Ruby with Firefox Send
Learn more how to send large files securely for free using ruby with firefox send. We evaluated couple of free services and finally chosen firefox sen.
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 external API call. It works (slowly) most of the time. But sometimes the network glitches and it fails. What do you do? In this article, José Manuel shows us several techniques for removing external API dependencies from our tests.