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.
Wrap any Java class in JRuby gem
Short, step by step tutorial, on wrapping arbitrary Java class in JRuby gem.
Object#enumerate
The Ruby core proposal demo made available as a gem for discussion of the functionality and the name.
let awesomecode add magic comment to your ruby code
awesomecode.io can add magic comment # frozen_string_literal: true automatically to your ruby code, we explain why and show an example: https://medium.com/@awesomecode/let-awesomecode-add-magic-comment-to-your-ruby-code-8fee610b3702
Rails DB gem (major upgrade)
https://github.com/igorkasyanchuk/rails_db has a new major version 2.0 upgrade for support Rails 5.X versions. [more inside]
Simply cache whatever you want
active_model_cachers provides cachers which will help you maintain cached objects and expire them when they are changed (including create, update, destroy, and even delete).
How this one conference generated 35+ pull requests to vital Ruby OSS infrastructure
Open source projects that are part of the average Rubyist’s toolbelt - like Homebrew and RVM - received an overwhelming amount of Pull Requests from new contributors at ROSS conf Amsterdam last weekend: https://blog.phusion.nl/2018/05/18/how-this-one-amsterdam-conference-generated-35-pull-requests-to-vital-ruby-oss-infrastructure-in-one-day-2/
How To Convert An Array Into A Regular Expression
In this video you will learn a nice little trick to convert an array of strings into a regular expression that you can use with the gsub method. https://www.youtube.com/watch?v=l6rLCX5uzeU
Crystal is not Ruby Part 1
Crystal is a very interesting project that I have been following for the last couple of months. Its marketed as having a lot of similarities with ruby, this post I write about the differences. [more inside]
Coinpare - Compare cryptocurrency trading data in terminal
Coinpare helps you easily compare cryptocurrency trading data across multiple exchanges and blockchains in the comfort of your terminal. You can also create and manage your own investment portfolio.
A Human Guide to Developer Productivity (Tools Included)
Learn how to improve, measure, and maintain developer productivity. This guide contains 5 key habits for developers, as well as related productivity tools to help you with: time management, code testing, distractions, and health preservation. Check it out! [more inside]
Exceptional Creatures: Timeout is Ruby's Most Dangerous API
If your app is experiencing mysterious stability problems, Timeout::Error may be to blame.
How to create a video upload platform using Ruby on Rails – Part 2
I have just finished working on the second part of my Video Upload Platform series. In this post, we dig a little deeper into transcoding the uploaded videos into a common mp4 format. [more inside]
Command-line Arguments in Ruby: Part I
In this article we’re going to explore the following topics:
A real-world example of technical debt
Think of it as a very short illustration of the concept of technical debt with Ruby code. https://rubyclarity.com/2018/05/a-real-world-example-of-technical-debt/
Rails 5.2: ActiveStorage Highlight
Rails 5.2 comes with awesome features: here we’ll talk about ActiveStorage [more inside]
Add beautiful code syntax highlighting to your Ruby on Rails app
The code syntax highlighting feature is a must-have for every developer blog or website where a code snippet can be presented. It’s easy to add it when you are using a blog engine like Jekyll or WordPress but you can also easily add it in your own Rails app. LEARN MORE
Is time to give a boost to your frontend development with Rails
In this article, I show you how to configure Hot Module Reloading with Webpacker and start taking advantage of in-browser editing of your CSS files to increase your efficiency when working on the frontend with Rails. [more inside]
How To Dramatically Improve Your Ruby Code With Fundamental OOP Principles
Learn how to improve your ruby code by looking through the lenses of cohesion & coupling! http://www.rubyguides.com/2018/05/ruby-cohesion-and-coupling/
Ensuring execution, retrying failures and reraising exceptions
Besides rescue, Ruby has more ways to handle exceptions. We’ll use the retry and ensure keywords and reraised exceptions to build a resilient web API client.
The Big Friendly Errorpage (Redesign)
Find out how the Phusion Passenger team redesigned the friendly errorpage to be easy to understand for non-developers, while at the same time providing developers with a wealth of information that is easy to navigate: https://blog.phusion.nl/2018/05/16/the-bfg-errorpage/
How To Remove Argument Order Dependency In Ruby
Removing dependencies leads to code that is easier to extend. In this article you’re going to learn about removing argument order dependencies. Check out the article
Mitigate DDoS using Rack::Attack
Have you faced DDoS in your Ruby applications? See how we tackled it using Rack::Attack. [more inside]