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.
What's new in Ruby 2.7
Ruby 2.7 has introduced a few new features, like new syntax for pattern matching, startless ranges and numbered parameters, while some others like the pipeline operator and the method reference operator didn’t make the cut. Here’s a quick summary: [more inside]
Dependency Injection in Ruby
A handy pattern for writing code called Dependency Injection can make your code more flexible and more testable. It doesn’t take much, but it can make a huge difference. Learn how to use Dependency Injection in Ruby
All blogs about Ruby in one place.
A curated list of Awesome Ruby Blogs and Newsletters for Ruby Developers and Newbies https://github.com/Yegorov/awesome-ruby-blogs
fstrings: Powerful formatting strings
Python-alike fstrings allow to use interpolation + formatting tags + custom objects formatting: f"Pi value is {Math::PI = %.3f}, today is {Time.now %Y-%m-%d}" => "Pi value is Math::PI = 3.142, today is 2020-01-08"
Building The Best Magic Link
I wrote this article on what you should consider if you are going to be implementing a magic link sign in for your application. [more inside]
Ruby Reference updated for Ruby 2.7
Ruby Reference is intended to be most full, actual and accessible language reference. Most of the reference content is taken directly from Ruby documentation and reorganized for easier reading. The core docs were augmented with some quotes from the Ruby website, and some missing content that is written specifically for the book. The source of the book (rendering scripts, config, and unique content) can be found at GitHub. Today I am releasing the new version, which was fully re-rendered for Ruby 2.7 and also includes some content and style fixes. Changelog.
Ruby 2.7 pattern matching after 10 months of professional Elixir
I looked at the experimental pattern matching in Ruby 2.7.
[Screencast] Like Relationships and Global ID
In this episode we create a Like/Unlike system where users can like posts and use Global ID to obfuscate IDs. https://www.driftingruby.com/episodes/like-relationships-and-global-id
ActiveRecord Adapter for Amazon Aurora Serverless
Simple ActiveRecord Mysql2 adapter extensions to allow Rails to use AWS Aurora Serverless via the Aws::RDSDataService::Client interface. Perfect if you are using Lamby to deploy your Rails applications to AWS Lambda.
Ruby Conferences & Camps in 2020 - What's Upcoming? Anything Missing? Updates Welcome
Hello, I’ve updated the Ruby Conferences & Camps in 2020 - What’s Upcoming? page. Try the rubyconf command line tool (packaged up in the whatson gem) e.g. [more inside]
Working with Capistrano: Environment Variables and Remote Commands
The Working with Capistrano: Environment Variables and Remote Commands is a second article in the series “Working with Capistrano”. It explores how to write tasks that allow for configuration, define environment variables and execute commands on a remote server. You will learn details behind Capistrano’s design and in the process discover new Ruby tricks. Enjoy!