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.
[Screencast] Tracking Changes on Action Text
Without using any gems, we look at tracking changes within Action Text. It seems like a simple thing, but challenges arise through several layers of abstraction due to the flexibility that Action Text provides. https://www.driftingruby.com/episodes/tracking-changes-on-action-text
It's Easy to Build: Custom docs project | Part 3 - ERB templating
In this third part of the series, we’ll learn how to use ERB templating engine to insert our HTML code generated into a standard HTML file. Link to article
Ruby Refinements - A Deeper Look
I don’t think refinements get enough use and find them to be quite handy when used well. Here’s an article that explains what they are, how to use them, and why they are useful. Also, mentioned in the article, is a reference to the gem of the same name. Enjoy!
Run Rails script as an ActiveJob job
in this til noteI’ll show you how to write scripts as ActiveJob jobs instead to avoid issues with rake task timeouting out [more inside]
Timestamp management with ActiveRecord::Events
Do you like how smoothly ActiveRecord handles the created_at
and updated_at
fields? Now you can do the same with your custom timestamps. Check out the active_record-events
gem: https://github.com/pienkowb/active_record-events
The Ruby Blend Episode 15: Rails Testing Tools and Best Practices with Jason Swett
Join Andrew Mason and Ron Cooke as they pick Jason Swett’s brain about Rails testing. This is a beginner friendly episode and goes into everything from tooling to what you should and shouldn’t test. Regardless of skill, there is something in this episode for you! Listen now!
The Progressive Rails App
Finally a tutorial, step by step, to make a Progressive Web App out of your Rails application. Fully based on Webpacker and with support for Hot Module Reload. Learn how to add a manifest.json, a service worker, write an offline page and send push notifications. [more inside]
rails_performance now works with Rails 4
https://github.com/igorkasyanchuk/rails_performance added support for Rails 4.2 (at least this is why I’ve tested). A simple alternative for NewRelic :)
WTF is a Convolutional Neural Network?
This is the last article in our four part series around machine learning in Ruby. [more inside]
Embracing Perspectives with the Rails Router
A simple Rails routing convention that could have a huge impact on how you organize and discover code in your applications. [more inside]
New Ruby / Ruby on Rails daily digest
I started a new Telegram channel - Ruby-Dooby Doo - to share a fresh daily news from the world of Ruby on/off Rails with you. I’m going to post a short news an links with a most interesting changes in Ruby, it’s frameworks and libs as well as it’s ecosystem. Subscribe and stay tuned!
How to Upload File to Amazon S3 using from Ruby Application
Learn more about how to upload a file to amazon aws S3 using a ruby application? Get more information about amazon s3 web application services. [more inside]
gem execution_time got a minor update
https://github.com/igorkasyanchuk/execution_time - simply track execution time of your code in Rails console. [more inside]
Why you should avoid nested STIs | ActiveRecord, Rails 6
Nested STIs don’t work well. Here’s what you must know to make it work or work around it. [more inside]
Extract Key or Value From Hash in Ruby on Rails
Want to extract key or value from hash in Ruby on Rails? Here is the tutorial showing the easiest process to extract key or value from hash in detail. Link: https://thedevpost.com/blog/extract-key-or-value-from-hash-in-ror/
Full page caching in Rails with Nginx and Redis
I wrote a quick post on how I have implemented full page caching in my Rails app using Redis as cache store and Nginx to serve responses directly, bypassing Rails altogether for maximum performance. This way the cache can be shared between multiple servers easily. [more inside]
How to Inspect an Object in Ruby
A refresher for those who have been using Ruby for a while and a simple write for those that are new to ruby, link
Free book: CI/CD with Docker and Kubernetes
I’d like to share with you an open source book called CI/CD with Docker and Kubernetes. At 90-pages, it covers what you need to ship your first container-based app to production. Hope it brings you some value, let me know! 🙌
Writing better StimulusJS controllers
Stimulus sprinkles interactive behavior on top of your boring HTML pages. By keeping your controllers small, generic, and composable you can build a front-end without the typical JavaScript mess. https://boringrails.com/articles/better-stimulus-controllers/
How To Securely Handle Webhook Events From Stripe In Ruby On Rails Application?
Want to know how to securely handle webhook events from Stripe in Ruby on Rails application? Here’s a complete guide on how to easily achieve that. https://www.botreetechnologies.com/blog/how-to-securely-handle-webhook-events-from-stripe-in-ruby-on-rails-application
How To "Replace" A Rails Initializer
This post shows you how to replace Rails’ built-in initializer correctly with 3 easy steps [more inside]
tty-pager adds streaming support
The latest tty-pager adds support for streaming content to a terminal pager. It provides a much more flexible API for any scenario where you want to add paging to your code. Hope you like it!
Ruby Coding Video: ASCII art faces
This is a video of coding animated ASCII art faces on the console in Ruby as a quick series of time-limited changes. http://codefol.io/posts/coding-study-video-ascii-art-faces/