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.
Using Sane Defaults for Rails Apps Configuration
This post explains one of the practices we use to improve web service configuration management. As an example, we will use a Ruby on Rails application running on the Kubernetes environment. However, the general concept of sane defaults is technology-agnostic and entirely applicable to different programming languages and frameworks. - https://dev.to/amplifr/sane-defaults-25pe
Brutal 💎🔨
A code-first approach to automate the writing of unit tests, and practice Brutal-Driven Development.
The state of ruby blogs cont. - Top topics or ruby & rails versions in headlines
Hello, I’ve added a couple of more insights to the little survey about the state of the ruby feed-iverse that includes personal blogs, ruby project news and more. New questions incl. Q: What are the top topics / words in headlines? Q: What are the top ruby versions in headlines? Q: What are the top rails versions in headlines? Note: See the planet.ini for all feeds included in the survey. Cheers. Prost. PS: Greetings from Vienna, Austria - this is a Vienna.rb Meetup / Stammtisch project.
Handling Slow Cascading Deletes In Rails
We all inevitably face the compromise of handling cascading deletes in Rails. Do we do dependent destroys (which are ideal but slow) or just let the database handle the cleanup (but loose the lifecycle control)? Neither is idea, so we made a simple utility for how we’ve been doing those types of deletes that’s somewhere in the middle. We call it Miss Hannigan.
[Screencast] Syntax Highlighting with Action Text
Set up Action Text with client side Syntax Highlighting using Highlight.js. https://www.driftingruby.com/episodes/syntax-highlighting-with-action-text
A Secret Weapon for Your Rails Apps - RPC With RabbitMQ and Hutch
Communication between two or more applications is often everyday stuff, and it might seem that there is not too much to add there as this subject has been covered pretty well in the last years. Thanks to that, multiple patterns and standards have emerged. You no longer need to think about how the response format should look like for your REST API (go with JSONAPI and stick to the conventions) or figure out the authentication/authorization protocol (go with OAuth and the security headaches won’t bother you). [more inside]
Writing a Ruby Gem Specification
Writing a Ruby Gem Specification article dives deep into, often confusing, attributes of a Ruby gem manifest file. In doing so it demonstrates ways to make your gemspec simple and neat like Marie Kondo’s drawers. Enjoy!
fake_api now works in a simple standalone mode
https://github.com/igorkasyanchuk/fake_api#standalone-mode-1 added a new way to start fake_api in standalone mode. So no need to attach it to the existing app. It’s based on rack/rails so it could be deployed for example to the staging
Benchmarking Ruby 2.7's Numbered Parameters
Quick example of Ruby’s new numbered block parameters syntax and a benchmark against named parameters. [more inside]
Faster Excel Parsing in Ruby
Benchmarking popular gems for excel parsing, featuring a brand new gem optimized for the task. [more inside]
Ruby on Rails Single Line Logging
Reduce the size of the log messages for production environments to one line per request https://medium.com/@wshihadeh/ruby-on-rails-single-line-logging-5a76852de1d2
The State of Ruby Blogs and News - 36 Channels, 1464 Items
Hello, I’ve put together a little survey about the state of the ruby feed-iverse that includes personal blogs, ruby project news and more. Questions include: What’s the update frequency of posts? What feed formats are in use? What servers are in use? What (web site) publishing tools are in use? … Cheers. Prost. PS: See the planet.ini for all feeds included in the survey.
Pros & Cons of Using Ruby on Rails for Web Development
We are huge fans of Ruby on Rails, and have been building web products with RoR for many years. So we have prepared a list of advantages and disadvantages of our favourite framework for web product development. [more inside]
Argon Trail: A Pre-RailsConf 2020 Hike with Planet Argon
If you’ll be in Portland, Oregon for RailsConf this year, there is a hike happening the day before the conference, sponsored by Planet Argon. [more inside]
Rails Development Environment with Docker Compose in Ubuntu 18.04
A long time ago, I did local web development by installing a framework and all its dependencies directly on my laptop. Now, I keep environments isolated from my local machine using containers. Recently, I dove back into Ruby on Rails and wanted to share my process for getting it up and running with Docker Compose! [more inside]
Is Ruby on Rails Secure to Run on in 2020?
Read why Ruby on Rails is one of the most secure frameworks in 2020: https://rubyroidlabs.com/blog/2020/02/is-ruby-on-rails-secure-to-run-on-in-2020/
Introducing Hanami::API
It’s a minimal, extremely fast, lightweight Ruby framework for HTTP APIs. http://hanamirb.org/blog/2020/02/26/introducing-hanami-api.html
Telegram Bot wrapper for the RubyGems.org API
Bot wrapper for the RubyGems.org API [more inside]
Open-sourcing Ferrum: a fearless Ruby Chrome driver
If you want to run integration tests on your website, you have three options: Poltergeist, Selenium and now, a new secret weapon — Ferrum. [more inside]
Ruby Environment Management - comparing RVM and Rbenv - which one is better?
An automated Ruby environment management is necessary for developers to easily work on multiple Ruby programs on the same machine. [more inside]