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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
If you’ve ever wanted quick access to Ruby system errors, HTTP statuses, GitHub projects, Ruby Gems, etc. all within an Alfred script filter then you might like this entire rewrite of the Pennyworth gem which supports all these features and more. 🎉 Check out this quick screencast for usage or many workflows you can use with Pennyworth, like DRY RB for example. Enjoy!
Ruby’s flexibility has always been both its greatest strength and its greatest weakness. You can write amazingly expressive programs. You can also slip and break them in amazingly expressive ways. RBS is a new type annotation system in Ruby 3 that seeks to keep ruby’s flexibility while protecting us from some of its dangers. In this article, Julio Sampaio walks us through RBS. He explains the impact it has on metaprogramming, and he shows us how we can use it to make our own apps more robust. https://www.honeybadger.io/blog/ruby-rbs-type-annotation/
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]
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.
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]
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/
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 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.
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]
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.
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/
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 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 is a new Ruby gem for working with SQLite3 databases. For more information: https://github.com/digital-fabric/extralite
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://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.