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.
Integrating Bootstrap 4 into Rails 6…and how to use a theme
An article to explain how to Install Bootstrap 4 and a Bootstrap theme [more inside]
Autoscaling Sidekiq on Heroku
Heroku add-on Rails Autoscale now supports autoscaling worker dynos. Check out the launch announcement and video to see how it works and how to set it up.
A weird Capybara error in `within` block
Some time ago, a weird Capybara error emerged while fixing the Solidus eCommerce codebase. [more inside]
How to Backup Heroku PostgreSQL Database to an Encrypted AWS S3 Bucket
Heroku offers a robust backups system for it’s PostgreSQL database plugin. Unfortunately, you can irreversibly lose all your data and backups just by typing a single command. It might seem improbable, but still, I would rather not bet my startup’s existence on a single faulty bash line. In this tutorial, I will describe how to set up a proprietary Heroku PostgreSQL backups system to a secure AWS S3 bucket. [more inside]
Troubleshooting Common Ruby on Rails Errors in Production
Explores common issues that new Rails developers might face when deploying and running their apps in production, that result in server errors, missing resources, and even timeouts. [more inside]
New features introduced in Ruby 2.7
Here I have published a new article regarding Ruby 2.7 new features! [more inside]
Announcing Square's New Ruby SDK
Square’s new gem lets you take payments or integrate with Square APIs for running a business: https://developer.squareup.com/blog/announcing-square's-new-ruby-sdk
Testing ActionText without JavaScript
I tend to try and avoid JS in my applications unless I really need it. [more inside]
ActiveRecord Connection Errors on Heroku - How to Reproduce and Resolve
If you use Rails and Sidekiq on Heroku (or elsewhere), you’ve probably run into ActiveRecord::ConnectionTimeoutError or PG::ConnectionBad a time or two. This video shows you why they happen and how to resolve them.
Sorbetting a gem, or the story of the first adoption
This post describes the process of integrating Sorbet into a gem with all the caveats/pitfalls I’ve encountered along the way.
How to Implement Elasticsearch When Developing a Rails Web App
How to integrate Elasticsearch in a Rails web app in 5 steps: https://www.codica.com/blog/developing-rails-web-app-with-elasticsearch/
Morfologik dictionaries client in pure Ruby for POS tagging & spellcheck
MorMor is pure Ruby morfologik dictionary client that could be used for POS (part of speech) tagging and simplistic spellchecking. Morfologik format’s distinguishing feature is it is primary dictionary format for LanguageTool, therefore a lot of ready high-quality dictionaries exist.
On Ruby and type checkers
A post reflecting on the need for adding type checkers to dynamic languages
Making a move abroad - from Bolivia to Hamburg
Moving from Bolivia to Hamburg? Not a problem! Here’s how our Kathia experienced her relocation to work as a Ruby developer: https://developer.epages.com/blog/on-the-job/making-a-move-abroad-from-bolivia-to-hamburg/
Messages on Rails Part 3: RabbitMQ
In the first part of this series, we were exploring some potential options for communication between services - what their advantages and disadvantages are, why HTTP API is not necessarily the best possible choice and suggesting that asynchronous messaging might be a better solution, using, e.g. RabbitMQ and Kafka. We’ve already covered Kafka in the part 2, now it’s the time for RabbitMQ. [more inside]
Fullstaq Ruby - Ruby, optimized for production (faster, less memory, RPMs/DEBs, Rbenv
I’ve released Fullstaq Ruby, a new Ruby distribution optimized for server production workloads. Less memory, faster, binaries via DEB/RPM, rbenv integration. This is achieved by integrating jemalloc and malloctrim. The fact that it distributes binaries packaged in RPM/DEB helps keeping Ruby security patched.
sportdb-import gem - New football.db Match Importer for CSV Packages (incl. England)
Hello, I’ve added a new (quick) importer for datafiles and packages in the comma-separated values (csv) format to the sportdb library / tool family. For an example ruby script to import all datafiles for all seasons (from 1888-89 to today) for England, see the README.md. Happy data wrangling with ruby. Cheers. Prost.