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.
RubyConf Thailand CfP Opened
The CfP for the first ever RubyConf Thailand just opened, submit your proposals.
Deploying Sinatra microservices to DigitalOcean Kubernetes
This tutorial shows you how to implement a Semaphore CI/CD pipeline for a Sinatra app: [more inside]
Return associations with additional records
this gem was created in 30 minutes to solve one problem with missed User in the dropdown in my one form. User was before softy-deleted, and I’ve got in “edit” form a blank select. But I need to show him in this form so on “update” I won’t override it to NULL. [more inside]
Deploying ML Models for Ruby applications
Building Machine Learning models is amazing, but it’s only the moment you connect the two — this model and your application, that can apply the prediction to the user’s interaction, that is the most amazing experience of all. Let’s train a simple ML Model and integrate it with Ruby application - it’s not that difficult to start!
How to add CSS Frameworks to a Rails 5.1+ application
You don’t need a gem to add CSS frameworks to your Rails apps. Learn how to add Bulma easily with yarn and the asset pipeline, then yarn and Webpacker: How to add CSS Frameworks to a Rails 5.1+ application
Why don't we validate controller parameters?
How my one silly typo caused an avalanche of 500 errors (aka strong parameters are not enough to make RoR app secure enough)
Rails 6 adds Array#including, Array#excluding, Enumerable#including, Enumerable#exclu
Rails 6 adds Array#including, Array#excluding, Enumerable#including, Enumerable#excluding as more readable approaches to collection additions and removals. [more inside]
How to Tell Your Ruby Program to Stop Running Early
Sometimes you want to stop your Ruby program early, but how can you do that? And what are the different options available? Find out in this article!
Rails 6 has added Relation#reselect
Rails 6 has added Relation#reselect which allows us to override existing select clause on Relation [more inside]
42.to_user OR [1,2,3].to_companies. Who want's this? :)
use this gem if you want to use such shortcuts :)
𝗙𝗿𝗼𝗺 𝗔 𝘁𝗼 𝗭
𝓒𝓱𝓮𝓬𝓴𝓸𝓾𝓽 az, 𝓲𝓽’𝓼 𝓪𝓷 𝓪𝔀𝓮𝓼𝓸𝓶𝓮 “𝓯𝓪𝓷𝓬𝔂 𝓤𝓷𝓲𝓬𝓸𝓭𝓮 𝓽𝓮𝔁𝓽” 𝓰𝓮𝓷𝓮𝓻𝓪𝓽𝓸𝓻.
Ruby 2.7 adds Enumerable#tally
Ruby 2.7 adds Enumerable#tally which is a simple way to count occurrences of elements in an enumerable. Read more about its usage here:
Multiple Bootstrap4 Themes with Webpacker
I’ve written a short blog post and included a demo application, to illustrate how to implement multiple themes for your Rails app, using Bootstrap and Webpacker.
Creating a multi-site marketplace platform with Ruby on Rails
Hey guys, we want to share our experience of building a multi-site vehicle marketplace with Ruby on Rails. The platform now counts 80+ independent marketplaces! Check our challenges, solutions and insights:
A poodle is a dog, but Ruby is not Rails
At the February Amsterdam Ruby meetup Michel Martens (maintainer of the Cuba framework for Ruby) joined us from Paris, to talk about web development and mental models 🧠 And my former boss Hongli Lai (creator Phusion Passenger) set out to tackle 🏃🏻♂️ Ruby memory bloat:
FastEntry - Cache management for Rails
“There are only two hard things in Computer Science: cache invalidation and naming things.” – Phil Karlton [more inside]
[Screencast] What's New in Rails 6
Overview of notable features coming soon in Ruby on Rails 6. https://www.driftingruby.com/episodes/what-s-new-in-rails-6
Rails 6 adds support for timezones to Active Job
Rails 6 adds support for timezones to Active Job
Webpack, Webpacker, and Modules, Oh My! How to Add Javascript to Ruby on Rails
A humorous look (an attempt at least) at explaining the various ways of getting your Javascript into Rails with the new Webpacker gem: Webpack, Webpacker, and Modules, Oh My! How to Add Javascript to Ruby on Rails
Nokogiri Gem Ruby Compatibility
It’s not easy to figure out which version of nokogiri is compatible with a given Ruby version. I generated the compatibility data using Docker and shell scripts. Check out the results: Nokogiri Gem Ruby Compatibility
Rails 6 adds before? and after? methods to Date, DateTime, Time, and TimeWithZone.
Rails 6 adds before? and after? methods to Date, DateTime, Time, and TimeWithZone. Its now more readable when compare date and times. Read more here:
Remote Ruby with Tim Riley
Tim, a partner at Icelab, dry-rb core team member, and world-renowned speaker (at least in Jason’s eyes) joins us on Remote Ruby to share how he got started programming with Ruby, the dry-rb project, Hanami 2.0, dry-view, and public speaking. [more inside]
Gracefully integrate Reactjs with Ruby on Rails in SaaS Applications
Hey guys, check out my first blog on React. Give it a read, short article on how you can kickstart Rails applications with React as front-end framework. [more inside]