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.
ShinyCMS 21.06 - The 'Happy Birthday, Fliss!' Edition
Today is my flatmate’s birthday! And it was either name this month’s release for that, or call it ‘the unemployed layabout release’ - I finished my previous job on Friday (after 5 years!), and haven’t quite sorted out the next job yet :-o Anyway, for ShinyCMS, this month was mostly about finishing up the View Components conversion in the admin area that I started last month - although route partials got a complete rewrite along the way. [more inside]
Embracing Ruby, the Best Language for Building Websites, in Bridgetown 0.21
Support for ViewComponent is finally here, along with numerous advances which fuel high-level design thinking. The powerful combination of Ruby and Bridgetown today enables tiny teams to compete favorably with much larger competitors.
Puma graceful restarts
How to configure Puma 5 application server for graceful restarts, and what is the difference between regular, hot, and phased restarts?
On the Job Hunt? Try this one thing to get experience as an early career Ruby dev
This is one thing I wish I had read when trying to get my first dev job! I spent far too long stuck on tutorial hell. [more inside]
Razorpay Integration in Ruby on Rails
Want to learn how to integrate Razorpay in your website using Ruby on Rails? Here’s how to do the Razorpay payment gateway integration. https://www.botreetechnologies.com/blog/razorpay-integration-in-ruby-on-rails/
Alba 1.3.0 comes with 20% performance improvement
Version 1.3.0 of Alba, a JSON serializer for Ruby, has been released with new features, bug fixes and performance improvements. An impressive thing is that one line change brought 20% speedup. Enjoy using Alba that’s faster than ever!
Automatic code review with Pronto and GitHub Actions
Using Ruby style and formatting tools on legacy application is tricky. You make a small change to an existing file, run the linter to check your work, and–dang. So many style pre-existing style violations! Such noisy ensuing git commits! Here’s how I integrate Pronto and GitHub Actions to check PRs for style and security issues.
command_kit 0.1.0.pre2 released (beta testers wanted)
command_kit 0.1.0.pre2 has been released. CommandKit is a new Ruby CLI toolkit for building correct and robust CLI commands as plain-old Ruby classes. Some advantages of CommandKit is declarative DSL syntax, modular design (every feature is an includable module), a variety of built-in features (ANSI colors, --help man-pages, sub-commands, less/more pager, XDG support, etc), and easy to test.
Rails 7 adds `Enumerable#sole` to return a sole item in the enumerable
In Rails 7, Enumerable#sole returns the sole item in the enumerable and raises an exception if no items or more than one item is found. [more inside]
Running Cron Jobs in Container Environments
https://www.devgraph.com/2021/03/15/running-cron-jobs-in-container-environments/?utm_source=RubyFlow Choose the best option to run your scheduled cron jobs in a container-based environment including Docker, Kubernetes, and Twelve-Factor Application implementations.
Top 12 Website Examples Built with Ruby on Rails
These 12 top websites built with Ruby on Rails and are the leaders in the industry. Check out the best examples that use the Ruby on Rails. https://www.botreetechnologies.com/blog/top-website-examples-built-with-ruby-on-rails/
Using Postgres Row-Level Security in Ruby on Rails
Learn how to create and implement a row level security policy in Rails, allowing to limit the database rows a user can access. [more inside]
SpreeConf 2021 - free online event for Ruby on Rails and Spree Commerce enthusiasts
SpreeConf is all about sharing Ecommerce know-how. We’ve invited developers, founders, and industry experts behind some of the most successful businesses using Spree from around the world. [more inside]
Extralite: An extra-lightweight Ruby gem for working with SQLite3 databases
Extralite is a new Ruby gem for working with SQLite3 databases. For more information: https://github.com/digital-fabric/extralite
Understanding Ruby Method Lookup
Ruby lets you express yourself like few other languages, with a minimum of boilerplate. It’s fantastic until it isn’t. Until one day when you think you’re calling the foo method you wrote last week, but instead, you end up calling a foo method that came with some gem from 2008. In these situations, knowing about Ruby’s method lookup rules will save your bacon.
https://www.honeybadger.io/blog/ruby-method-lookup/
Ruby On Rails Web Development
https://blog.engineyard.com/ruby-on-rails-web-development/?utm_source=RubyFlow This post describes Ruby On Rails, what types of applications it’s best suited for, and some useful examples of websites built on Ruby On Rails.
[Fix] Missing top level class documentation comment Rubocop
Disable or fix the warning “Missing top-level class documentation comment” in 3 different ways. [more inside]
How conditional GET requests & fresh_when work in Rails
I wrote a long(ish) Twitter thread on how conditional GET requests work in Rails, with a Rails source code walk-through. It also explains how cache keys are created and can be used to cache objects and Active Record relations in combination with Rails’ fresh_when.
How to host your Rails app on Heroku for free
An exhaustive guide on how to leverage heroku’s free plans for your next side project.
New tty-sparkline gem
The tty-sparkline gem renders sparkline charts in your terminal applications. You can control the display by configuring width, height, minimum, maximum and more. The charts can also be coloured based on data values that can be given upfront or streamed. Enjoy!
How to Build Your Own Gem in Ruby
https://blog.engineyard.com/how-to-build-your-own-gem-in-ruby?utm_source=RubyFlow As the name implies, the Ruby programming language thrives thanks to the presence of gems.