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.
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: https://www.rubyguides.com/2018/01/functional-programming-ruby/
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
How Redux store works from a Ruby perspective
Read on about a little Ruby reimplementation of Redux store.
Switching from pow to puma-dev for SSL on .dev
Thanks to the recent changes with how Chrome handles the Google-owned .dev TLD, it is no longer recommended to run Ruby on Rails apps with Pow in development in OSX/macOS. Pow doesn’t support HTTPS and Basecamp have ceased development of it after 7 years, so it’s time to move on.
Ruby Gem for OpenDotaAPI
Unofficial Ruby Gem for OpenDotaAPI. This API provides Dota 2 related data.
Localer: A tool that automatically detects missing I18n translations
Localer is a command line tool that makes integrity checks of the translations
Ruby on Rails and transactions - learn about callbacks to make your app more flexible
Rails transactions allow you to build complex processes and revert changes in case of failure. Learn how to use transaction callbacks to make your app even more flexible READ MORE
Built On Rails: The definitive list of apps built with Rails
I started builtonrails.com to collect all the awesome examples of Rails out in the wild. Check it out and expand the list!
Exceptional Creatures: Ruby's RuntimeError
Learn how Ruby uses its RuntimeError exception and check out this week’s creation at Exceptional Creatures!
A Gem to compile and run code
hackerearth_api is a gem which can be used to compile and run code via Hackerearth API. [more inside]
Dry-rb and Trailblazer Reform
Why do we use dry-rb and Trailblazer Reform on the backend? [more inside]
Reducing Memory Usage in Ruby
Aaron Patterson is working on a compacting garbage collector for Ruby and in this post he explains the challenges involved.
Setup SSL proxy for insecure browser content with Ruby and NGINX
A tutorial on how to use Ruby and NGINX as an SSL proxy for insecure static assets. It also describes some basic streaming techniques for Rails and Rack apps. [more inside]
Refactor your Ruby on Rails app with policy object pattern
Policy objects are primitive Ruby objects, used for checking operations isolation. I personally love this pattern, however, there are some rules that we should stick to in order to name given object as a policy object. READ MORE
One way to build a Simple Form Custom Input Component
I wanted to use a Bootstrap datetime picker in my Simple Form-based form in Rails 5.1, and didn’t find a built-in solution or a how-to that exactly fit my needs. Here’s what I came up with!
ClojureScript with Middleman via Shadow-CLJS
Using ClojureScript in a Ruby Middleman project. http://bobnadler.com/articles/2018/01/28/clojurescript-with-middleman-via-shadow-cljs.html