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.
Rails engine to add traffic analytics to your web app
We have released a Rails engine to enable traffic analytics to any Rails application out of the box. The goal is to have simple traffic analytics for the win of privacy. NO cookies, NO JavaScript, NO third parties and NO bullshit. We wrote a small article to explain a little bit further :
Moving ActionCable over to Webpacker
If you’ll be updating your Rails application to use Webpacker, here is a step-by-step post on how I moved ActionCable to Webpacker.
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.
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
🎧 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!
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
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
Embracing Perspectives with the Rails Router
A simple route organization technique to keep your controllers small and focused. [more inside]
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!