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.
Super v0.0.6
Release of the next version of Super, a Rails admin framework. https://zachahn.com/posts/1607871999/ [more inside]
Day 13 - lumione @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, let’s thank Dmitry Maksyoma for the thirteenth write-up in the Ruby Advent Calendar 2020: Day 13 - lumione Gem - Money. Money. Money. Convert NZD ($) to USD ($) or EUR (€) to JPY (¥) in Your Terminal using the European Central Bank (ECB) Reference Exchange Rates. No API Key Required. Yes, Works Offline. Cheers. Prost.
The Evolution of Ruby Strings from 1.8 to 2.7
An overview of the String class since Ruby 1.8 https://medium.com/rubycademy/the-evolution-of-ruby-strings-from-1-8-to-2-5-8b2ed8f39fad
Day 12 - matestack-ui-core @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, let’s thank Pascal Wengerter for the twelfth write-up in the Ruby Advent Calendar 2020: Day 12 - matestack-ui-core Gem - Write Web Components in an (HTML) Domain-Specific (Mini) Language (DSL) Getting (Automagically) Turned Into Modern (Reactive) Web Views on Top of Vue.js . Cheers. Prost.
Prettier for Ruby goes v1.0
The Prettier plugin for the Ruby language has just released v1.0. Learn more in the official blog post: https://prettier.io/blog/2020/12/11/plugin-ruby-1.0.html
Improve Code Quality with RuboCop
Cleaner pull requests, automated knowledge sharing, and easy engagement with open-source software? Sign me up! [more inside]
Day 11 - boring_generators @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, let’s thank Abhay Nikam for the eleventh write-up in the Ruby Advent Calendar 2020 - Day 11 - boring_generators Gem - 10x Development - Speed-Up Your Coding By Automating and Generating Boring Setups. Cheers. Prost.
Protecting ActiveStorage Uploads
ActiveStorage is a great addition to Rails. However, if need to protect uploads through a means more secure than the security by obscurity provided by the redirect service, you need to write your own controller. https://onrails.blog/2020/12/10/protecting-activestorage-uploads/
Glimmer Button Counter Sample (SWT Desktop & Opal Web)
Glimmer DSL for SWT 4.17.10.5 and Glimmer DSL for Opal 0.7.4 have been released with support for a new sample: Hello, Button! That is the simplest most intuitive button counter code you will find anywhere on earth! Happy Glimmering! https://andymaleh.blogspot.com/2020/12/glimmer-hello-button-sample-swt-opal.html
Climbing Steep hills, or adopting Ruby 3 types with RBS
Yes, types are coming to our favorite dynamic language! Let’s see how to take advantage of them by adding types to a real-world open source project and looking at the finer points of the process.
Bonus! - Day 10 - parslet @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, let’s thank Rachel Green for the tenth (+1 bonus) write-up in the Ruby Advent Calendar 2020 - Day 10 - parslet Gem - Build Your Own Language Parsers (and Lexers) with Parsing Expression Grammars (PEGs). Cheers. Prost.
Day 10 - happy_gemfile @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, let’s thank Mike Rogers for the tenth write-up in the Ruby Advent Calendar 2020 - Day 10 - happy_gemfile Gem - Stop House Keeping Your Gemfile. (Auto-)Format Your Gems Sorted from A to Z and by Groups. (Auto-)Clean up the Clutter. Happy Gemfile Day! Cheers. Prost.
Day 09 - thegamesdb @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, let’s thank Fernando Briano for the ninth write-up in the Ruby Advent Calendar 2020 - Day 9 - thegamesdb Gem - Get Donkey Kong, Super Mario Bros., The Legend of Zelda ‘n’ More. API Client for TheGamesDB, an Open Database for Video Game Data. Cheers. Prost.
Quick Tips for adding a REST API to a Rails Application
Rails projects typically start out fairly simple, but evolve into more complex applications over time. In order to add a client-side framework or mobile application, creating a REST API might be necessary. It’s really straightforward to create a new Rails API. However, it might be easier to add an API to an existing project. There is “right” way to do this, but there are some things to keep in mind that can make future development a bit easier. Full blog post here: https://era86.github.io/2020/12/09/quick-tips-for-adding-a-rest-api-to-a-rails-application.html
Chaskiq 0.6.0 is out, featuring Banners! 💟 and good bye Travis.
We are happy to announce version 0.6.0, this comes with a new feature, Banners! Check the repo https://github.com/chaskiq/chaskiq ! [more inside]
Overriding Rails’ field_error_proc
I always wondered how to set bypass ActionView::Base.field_error_proc on certain forms while leaving it alone for others. It defaults to wrapping form fields with div.field_with_errors, but I sometimes want to handle errors a bit differently. https://zachahn.com/posts/1607312460/
Day 08 - acts_as_tenant @ Ruby Advent Calendar 2020 - 25 Days of Ruby Gems
Hello, let’s thank Chris Oliver for the eighth write-up in the Ruby Advent Calendar 2020 - Day 8 - acts_as_tenant Gem - Together but Apart. House Many Tenants in One Database. Multitenancy with Table Row-Level Database Security. Cheers. Prost.
Why You Should Never Use sudo to Install Ruby Gems
Did you know gems can run arbitrary code during installation? Would you want to risk having your hard drive erased? Follow along with an example of how to build your own gem locally that can run harmless code during installation. [more inside]
Asynchronous Image Processing in Ruby on Rails with Shrine
As Ruby on Rails developers, we often encounter the need to upload and store images provided by our users. Often these images need to be resized and saved as multiple versions: for mobile, web, thumbnails, OG images, and other custom and non-standard formats needed by the Client. What problem does it lead to? Image processing is a computationally intensive operation and the latency will inevitably drop. Solution? Sidekiq + Shrine! Asynchronous Image Processing in Ruby on Rails with Shrine
How to use Stimulus JS 2.0's new Values and CSS Classes APIs
The long awaited changes for Stimulus JS’s Values and CSS Classees APIs were released last week. These allow you to specify options (and types!) for your Stimulus controllers making them way cleaner to implement. Watch the screencast on How to use Stimulus JS 2.0’s new Values and CSS Classes APIs
[Screencast] The Stimulus 2.0 Tutorial
Stimulus 2.0 has been released and with it comes new features, changes and bug fixes. In this episode, we look at adding Stimulus in our application, exploring the new features, and looking at what has changed. https://www.driftingruby.com/episodes/the-stimulus-2-0-tutorial