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.
Services vs. Objects - The Battle for Decomposition and Reuse
Although object-oriented analysis and design is extremely valuable, services are a great mechanism to implement business logic in Rails applications. [more inside]
Ruby 3.1 evaluates multiple assignments from left to right
Ruby changes the evaluation order for multiple assignments from left to right making it consistent with single assignment evaluation order. [more inside]
Video: Creating Hanami application from Application Template
A quick setup instructions video for using Hanami Application Template! [more inside]
Should I Get an Internship or Keep Practicing my Coding Skills?
In the tech job hunt? Lacking experience is tough. Will landing an internship help or is it better to keep practicing for The Job? [more inside]
Alba now supports types
Version 1.2 of Alba, the fastest JSON serializer for Ruby, has been released with support for Types. Yes, types. Now you can validate input with types and even convert it to those types.
React on Rails: Building a Simple App
To decide on a front-end for your Rails app, you need a feel for the options. Does a certain JS framework speak to you or does it make you feel dirty inside? There’s only one way to find out! In this article, Julio Sampaio walks us through creating an React app from scratch and integrating it with a Rails back-end via webpacker.
Useful Active Support features you may not have heard of
Active Support is a really powerful library that is a part of Rails framework. Today we will focus on utilities it includes, which can be useful in your next Rails project or any other ruby app. Read more
TinyHooks reached 1.0.0 with performance and features
The first major version of TinyHooks has been released! It’s 1.6 times as fast as ActiveSupport::Callbacks so is a great option if you’re building hooks in your own projects.
Migrating Octopress Blog to Jekyll and Serving It with Github Pages
A simple and short blog post about how to migrate an octopress blog to jekyll. Have fun!
Run all mutations in DB transactions
An easy solution to wrap all GraphQL mutations into DB in your app that uses graphql-ruby:
Rails 7 transforms a Ruby hash into HTML attributes for ERB interpolation
Rails 7 added an alternate way to embed HTML attributes into ERB view [more inside]
Hanami v2.0.0.alpha2
After two years of work, presenting a revolutionary new vision for Hanami 2.0 that integrates with dry-rb & ROM.