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.
Day 3 - sportdb @ Ruby Open Data Week 2021 - 7 Days of Ruby (Open Data) Gems
Hello, let’s welcome the third write-up in the Ruby Open Data Week 2021: Day 3 - sportdb Gem - Read in Sport (Football) Datasets in (Structured) Text Into Your SQL Database of Choice (SQLite, PostgreSQL, etc) - World Cup, English Premier League, Spanish La Liga, Austrian Bundesliga and More.Cheers. Prost.
Rails adds #excluding to ActiveRecord::Relation
Rails adds #excluding method for an ActiveRecord::Relation to exclude the specified record (or collection of records) from the resulting relation. [more inside]
Day 2 - beerdb @ Ruby Open Data Week 2021 - 7 Days of Ruby (Open Data) Gems
Hello, let’s welcome the second write-up in the Ruby Open Data Week 2021: Day 2 - beerdb Gem - Serve a Guinness Irish Stout or a Bamberg Aecht Schlenkerla Rauchbier Märzen as JSON - Free Home Delivery. Enjoy responsibly. Cheers. Prost.
Day 1 - factbook @ Ruby Open Data Week 2021 - 7 Days of Ruby (Open Data) Gems
Hello, let’s welcome the first write-up in the Ruby Open Data Week 2021: Day 1 - factbook Gem - Turn the World Factbook into Open Structured Data (e.g JSON) - Free Intelligence on the History, People, Government, Economy, Energy, Geography, Communications, Transportation, Military ‘n’ Terrorism for 260+ Countries. Happy exploring the world. Cheers. Prost.
Resilience in Ruby: Shell Commands and More
Nothing fancy here. Just head over to https://www.johnnunemaker.com/resilience-in-ruby-shell-commands/ and read more. Let me know what you think.
Glimmer Metronome & Hello, Canvas Animation Data Binding!
While going through drum pad practice yesterday, I noticed that my iPhone metronome app was broken after the latest update as it was ticking up on the second beat, not the first anymore. It was a small thing, but quite annoying, so I deleted the app and wrote my own Metronome app in Glimmer DSL for SWT in under 10 minutes for the initial working 4/4 rhythm version. [more inside]
Active Entry | Authentication and Authorization for your Rails app
Active Entry is a simple and secure authentication and authorization system for your Rails application, which lets you to authenticate and authorize directly in your controllers. [more inside]
Glimmer DSL for SWT Custom Shapes
Glimmer DSL for SWT just had a new feature release (4.18.7.0) introducing the concept of custom shapes! [more inside]
Inside the Punk Art Machinery - How To Generate 10 000 Punks, Algorithmically w/ Ruby
Hello, I added a new chapter to the Programming Crypopunks booklet titled:
Inside the Punk Art Machinery - How To Generate 10 000 Punks (and Punkettes), Algorithmically - Paint by Numbers. It reads: Let’s code the artist known as generate_punk - a method that
returns a (ready-to-save) punk image from the attribute parts coded as
numbers starting at 1. If the code is 0 then the (optional) part gets
skipped… Cheers. Prost.
factbook-codes gem - world factbook countries & codes (by region, by category, etc.)
Hello, CIA.gov has changed… I am trying to catch up and update the world factbook machinery - starting by breaking up the all-in-one “monolith”. The first standalone module is the new factbook-codes gem that lets you (re)use all world facbook countries & codes (by region, by category, etc.). Happy exploring the world. Cheers. Prost.
Rails PWAs using Turbo - HHNPWA #7
What makes any web site a progressive web app? Two small pieces tell the browser to treat your web page as a progressive web app. https://onrails.blog/2021/03/02/rails-pwas-using-turbo-hhnpwa-7/
rails_performance with new features
https://github.com/igorkasyanchuk/rails_performance an updated version of new_relic/datadog alternative for your RoR apps. Using Rails instrumentation + Redis to store info about your performance. [more inside]
Glimmer DSL for SWT Hello, Canvas Data Binding!
Glimmer DSL for SWT v4.18.6.2 just shipped with the new Hello, Canvas Data Binding! sample. [more inside]
Implementing hierarchy categories in Ruby on Rails
Through this article, you are going to be learning a very efficient way of implementing your hierarchical categories in such a way; that no third-party gem is used whatsoever. it will all be done using solid ruby on rails structure and code. https://devhaitham.medium.com/implementing-hierarchical-categories-in-rail-fd47f33b4bba
Read this before deploying a new Rails app to Heroku!
Have you tried deploying a new Rails app to Heroku and gotten strange errors about rake, such as “Could not detect rake tasks”, or “cannot load such file – rake (LoadError)”? This is due to a recent change in Bundler. Read my guide about Understanding Gemfile.lock for the fix. This guide is for both beginners and experienced Rubyists who might not be aware of the Bundler issue.
Migrating Tachyons to Tailwind (in a Rails app)
A little series describing the whole process of migrating our Tachyons styles to Tailwind CSS 2.0 in a Rails app. The initial analysis, the tools used, the issues hit and lessons learned. [more inside]
Glimmer DSL for SWT Canvas Path DSL
Glimmer DSL for SWT finally brings quadratic and cubic bezier curves to the table, adding two new samples: Hello, Canvas Path! and Stock Ticker. [more inside]
'Yo dawg, I herd u liek CMS' - the March 2021 release of ShinyCMS
This month’s big news for ShinyCMS is that the remaining main_app functionality has now been moved into a ‘core features’ plugin, which is a big step towards finalising the ‘pluginification’ of the whole CMS. The end goal is for ShinyCMS to be an entirely modular system that you can bolt into your own web application, rather than a stand-alone CMS - although I’ll still produce a ‘reference’ app that just includes all the plugins, so people can easily install it as a standalone CMS if they want to. There are still some loose ends to tidy up, but it’s nice to have that goal feeling very close now! :) [more inside]