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.
Free autoscaling for all Heroku Rails apps
Every Rails app on Heroku should have a safety net in place, and now they can. Introducing the free plan for Rails Autoscale.
Ruby : the "unless" keyword
You are probably familiar with the “if else” control flow but there are certain situations where there may be a visually better way to write these statements. Here we will discuss how you can achieve this via the unless keyword in Ruby and the different ways you can use it. [more inside]
Rails 7 add encryption to Active Record
Rails 7 supports application-level encryption. We can declare which attributes should be encrypted and, ActiveRecord will encrypt and decrypt when necessary. https://blog.saeloun.com/2021/06/09/rails-7-add-encryption-to-active-record
Conditional HTTP GET: The fastest requests need no response body
Wrote a lengthy article on how to utilize conditional HTTP GET requests as a caching mechanism, with examples in Rails. Check it out here.
Examples of Successful Self-Taught Developers
Feel like coding is not for you? You’re not alone. To give you a boost of inspiration, here’s a list of a few successful Rails developers that come from unusual backgrounds. You can read it here.
Dave Thomas on Testing Past, Present, and Future
https://semaphoreci.com/blog/dave-thomas-testing-past-present-future 🎧 An interview about the impact of testing and how software engineering has changed over many decades.
Rails 7 ensures has_one autosave association callbacks get called once
In Rails 7, the autosave association callbacks for the has_one are non-cyclic. [more inside]
Template for making a stock Rails app Ready for Heroku deployment
Wrote a small Rails template to convert a new Rails app to be ready to be deployed on Heroku. [more inside]
Building A New Programming Language In Ruby: The Interpreter
In earlier installments of this series, Alex Stoll guided us through creating a lexer and a parser. These translated the human-readable source code into data structures. In this article, he begins work on the interpreter - the bit that actually runs our code! https://www.honeybadger.io/blog/building-interpreter-ruby/
My thoughts about Open-Source work
I’ve put together a summary of my thoughts related to Open-Source work and financing https://hanamimastery.com/articles/hanamimastery-origins [more inside]
sandbox mode added in rails_db
https://github.com/igorkasyanchuk/rails_db a new feature added (sandbox mode).Only read-only operations are allowed with your DB
[Screencast] 10 Ruby on Rails Tips and Tricks
I don’t get around to doing these too often, but they are always a lot of fun. In this episode, we’ll look at ten different Ruby on Rails tips and tricks. https://www.driftingruby.com/episodes/10-tips-and-tricks
Move From Sprockets to Webpacker On Small to Large Rails Apps
Want to remove Sprockets from your Rails application? Is it even possible to do it on a large legacy app? Here’s a list of examples to help you depending on the size and complexity of your project: Move From Sprockets to Webpacker On Small to Large Rails Apps
Integrate Bulma with Hanami 2.0 applications!
I’ve published a new Hanami Mastery episode! [more inside]
New Gem capistrano-slacky released!
I have just released a new gem called capistrano-slacky . This is a Capistrano plugin to send deployment status to Slack via the Incoming Webhooks integration. [more inside]
Infinite Scrolling Content in Rails — Without Writing Any Javascript
Being able to add interactivity to your web application is great. Being able to do it without having to write Javascript is better. This article describes a technique you can use in Rails to build an infinite scroll pagination feature into your app. [more inside]
Using Redis Hashes for Caching in Ruby on Rails
An article sharing lessons we at Mrsool learned using Redis with Rails in production at scale, and sharing a Ruby gem we created to help make it easier for others.
Pennyworth 11.0.0 - Fuzzy find the repo/gem you need
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!
Understanding RBS, Ruby's new Type Annotation System
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/
A First Look at AWS App Runner
AWS recently introduced App Runner, a service for running containerized applications. Is there room for yet another managed container offering? How does it compare with AWS Fargate and ECS? [more inside]