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.
Stimulus with Turbolinks, select2 and FormValidation in Rails
A short before and after example of conversion into using Stimulus [more inside]
Ruby on Rails refactoring - service object pattern
This refactoring pattern is very simple but I found it very useful in every app I was working on. You can use it wherever class or method has to much code. Learn about this pattern
React + Rails: How These Companies Use Ruby on Rails and React.js
How are people liking the pair or Ruby on Rails + Reactjs? What types of applications are using these frameworks? Hear from several companies using this combination in their apps. [more inside]
Panko Serializer -High Performance Serialization for ActiveRecord
High-Performance serialization for ActiveRecord (and very soon for plain Ruby objects) which shows 40% to 70% performance boost! [more inside]
How to Separate Features for Different Organizations in a Rails App
While different web apps often have the same codebase, each can still provide different features to organizations, or so-called tenants. In this article we’ll review three methods of separating features in your multi-tenant Rails-based SaaS application.
Rails + Angular2. How to organise your two layers application in a monorepo
Organising your work when you have a two layers application can be very difficult. In this article I will list the common issues and propose a solution which uses a monorepo. You can also find an example on GitHub. Enjoy! [more inside]
Ruby on Rails and nested transactions - learn how to use them
It is easy to create nested transactions but it is not obvious how to rollback them properly to revert our changes when something went wrong. I want to learn how to rollback nested transactions
A first naïve look at TruffleRuby
I wanted to try out TruffleRuby, so I took raw notes as I went and shared them to encourage other people to try it out too.
Quick Ruby tip - how to process nested hash in a simple way
A simple way to process nested hash in Ruby: Read more
Ruby Conferences ‘n’ Camps in 2018 - What’s Upcoming?
Hello, I’ve updated the Ruby Conferences ‘n’ Camps in 2018 Calendar @ Planet Ruby. What’s news? The calendar now uses a month by month view. New conferences include: RubyConf Belarus, RubyUnconf Hamburg, and some more. Anything missing? Additions (and updates) always welcome. Cheers.
Method Overloading in Ruby
A simple way to overload methods in Ruby: Read More
Refactor your Ruby methods with the parameter object refactoring pattern
Sometimes is hard no to pass many parameters to a single method and this is the moment when parameter object comes in - READ MORE
Offline Middleman blog
Code snippets adding the offline accessibility to a blog built via Middleman [more inside]
Functional Programming In Ruby
What is functional programming exactly? How does it compare to object-oriented programming? Should you be using functional programming in Ruby? Find the answers:
Prometheus-Reporter
A simple gem to build reports for Prometheus in a text format (DSL and validations included). In opposite to official ruby gem for prometheus, it allows you to expose any custom metrics (i.e. entities in the DB), not only web-server stats. [more inside]
Improved data processing tools in kiba-common v0.0.6
Kiba Common, a companion OSS gem to the Ruby data processing & ETL framework Kiba, is now at v0.0.6 and provides tools leveraging Kiba 2 StreamingRunner to build more powerful data pipelines.
What's Up in 2018/2? - Ruby Conferences & Camps from Around the World
Hello, I’ve updated the new calendar site @ Planet Ruby. The idea is to publish monthly updates. What’s Up in 2018/2? - Ruby Conferences & Camps in February 2018 from Around the World. Cheers.
What's new in Rails 5.2: Active Storage and beyond
Take the latest version of Rails (now in RC1 and stable) for a test-drive and get familiar with Active Storage framework for file uploads with this hands-on guide. Also covering Credentials, CSP configuration, and more.
PostgreSQL Quick Tips: Working With Dates Using EXTRACT Function
Imagine that you are implementing an e-commerce platform and want to grab all orders from the current year. What would be the simplest way of doing it in Rails? Probably writing a query looking like this: [more inside]
Value object refactoring pattern - improve your Ruby on Rails app
Value Object is a Ruby plain object. Such object represents a value but not something unique in your system like a user object. Value Objects always return only values. I WANT TO SEE IT IN ACTION