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.
RSpec fundamentals: setup, naming, and basic structure
When you start programming, it’s not easy to know what to test, how to test, and why should you test? This first post about RSpec fundamentals will be part of a larger series explaining various aspects of testing with RSpec. [more inside]
Day 6 - worldlite @ Ruby Open Data Week 2021 - 7 Days of Ruby (Open Data) Gems
Hello, let’s welcome the sixth write-up in the Ruby Open Data Week 2021: Day 6 - worldlite Gem - All the World’s Countries ‘n’ Codes Incl. ISO (Alpha 2, Alpha 3, Num 3), FIFA, IOC, Internet Domains, Vehicle Registration Plates, ‘n’ More. Cheers. Prost.
Nebula Glimmer Custom Widget
The Nebula Project is a collection of 55+ enterprise-grade high-quality SWT (Standard Widget Toolkit) custom widgets, which are made available for use with Glimmer DSL for SWT in this Ruby gem. Glimmer DSL for SWT is more than feature-complete. It is enterprise-grade-complete! [more inside]
SudoRails v0.7.0 has been released 🚀 Sudo mode for your Rails controllers 🔒
Protect any Rails action with a customizable password confirmation. 🙇 Inspired by GitHub Sudo mode and Unix sudo command. [more inside]
How to make an Instagram clone with Ruby on Rails & StimulusReflex (live stream)
I’m running a live stream on YouTube where I explore how to build an Instagram clone with Ruby on Rails & StimulusReflex using BDD. Check it out
Rotate Log Files in Rails Application with LogRotate in Ubuntu
Want to know how to rotate log files in a rails application? here’s how to use logrotate installation in ubuntu for automatically rotating log files in your rails web app. https://www.botreetechnologies.com/blog/rotate-log-files-in-rails-application-with-logrotate-in-ubuntu/
Day 5 - csvpack @ Ruby Open Data Week 2021 - 7 Days of Ruby (Open Data) Gems
Hello, let’s welcome the fifth write-up in the Ruby Open Data Week 2021: Day 5 - csvpack Gem - Work with Tabular Data Packages (.CSV Files w/ datapackage.json) using SQLite In-Memory (w/ ActiveRecord). Cheers. Prost.
Bonus! Day 4 - annotate @ Ruby Open Data Week 2021 - 7 Days of Ruby (Open Data) Gems
Hello, let’s welcome the fourth (bonus!) write-up in the Ruby Open Data Week 2021: Day 4 - annotate Gem - Annotate Your ActiveRecord Models with Comments about Your Database Table Structure. Cheers. Prost.
Day 4 - schemadoc @ Ruby Open Data Week 2021 - 7 Days of Ruby (Open Data) Gems
Hello, let’s welcome the fourth write-up in the Ruby Open Data Week 2021: Day 4 - schemadoc Gem - Auto-Generate Your SQL Database Schema Documentation for Tables, Columns, Symbols A-Z, Etc - Use Your Own (Static Jekyll) Themes And More.Cheers. Prost.
Adding SQLite to a Rails development container
My pursuit of developer happiness via Docker/containers continues. This week, I added SQLite support to my Rails container environment in VS Code.
Logging in Ruby with Logger and Lograge
Logging is tricky. You want logs to include enough detail to be useful, but not so much that you’re drowning in noise - or violating regulations like GDPR. In this article, Diogo Souza introduces us to Ruby’s logging system and the LogRage gem. He shows us how to create custom logs, output the logs in formats like JSON, and reduce the verbosity of default Rails logs. https://www.honeybadger.io/blog/ruby-logger-lograge/
Turbo Native for iOS
In this episode, we look at modifying our Rails application and building a hybrid native application for iOS using Hotwire. https://www.driftingruby.com/episodes/turbo-native-for-ios
The Turbo Showcase 🚀
Are you also wondering what you can actually do with Turbo and “how”? [more inside]
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]