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_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/
search_flip - v3.0.0 of the elasticsearch client got incredible new features
You can now convert search flip criterias to raw elasticsearch queries for code reuse, which helps to DRY up complex queries. Moreover, you can now use nearly all search flip query methods within its aggregation DSL to make top hits aggregations super simple. search_flip v3 comes with Instrumentation support. Give it a go: https://github.com/mrkamel/search_flip
Ruby vs Python Performance
An ultimate guide on how to choose between Ruby and Python programming languages. See what technology will perfectly fit your business and technical needs.
The Ruby Blend: StimulusReflex, BridgetownRB, RailsBytes, AppLocale.dev, and more
In episode 14 of The Ruby Blend, the guys talk about new and exciting things they’ve been working on. Nate starts out by talking about how he paired up with Jason Charnes of Podia and Remote Ruby, working on some great things on Stimulus Reflex. Andrew discusses a cool project to check out called BridgetownRB. Also, Andrew talks about some new projects he’s been contributing to called “RailsBytes” and “AppLocale.” Also, find out why Nate calls Ron the “Sage Wise One” on the show! You won’t want to skip this one!
Two Commonly Used Rails Upgrade Strategies
In this article I cover two common Rails Upgrade strategies so you can decide which one is the best for your application. [more inside]
Stats Package for Spatial Databases using ActiveRecord/PostGIS
spatial_stats is a gem that provides various statistical methods to Rails apps with a spatial database. It currently supports spatial weighting and global/local hot spot analyses. Point pattern analysis module, regression module, and standalone Ruby support coming soon. [more inside]
The webpack plugin I can't live without
In this post, we’ll take a look at installing and using the webpack-bundle-analyzer, perhaps the most invaluable webpack plugin, to analyze and debug the output of the webpack build in a Rails project configured to use Webpacker. https://rossta.net/blog/webpacker-output-analysis-with-webpack-bundle-analyzer.html
Learn to prepare PPA packages, by setting up a Ruby PPA
Now that the Brighbox PPA is discontinued, it’s time to build one’s own Ruby PPA! … but it’s always a good time to setup a PPA anyway 😄