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.
Create Your First Useful Ruby Gem and Contribute To Open Source Software
If you’d like to start building useful software products that sell, so that you can proudly tell your friends, family and colleagues you’re a professional programmer now… [more inside]
Controllers: the Rails way vs the Hanami way
A brief comparison on how to work with controllers with Rails and Hanami https://sipsandbits.com/2018/05/23/rails-controllers-vs-hanami-controllers/
How To Use The Singleton Pattern In Ruby (And Why You Should Avoid It)
Learn about the singleton pattern, what is it & how to use it in Ruby. https://www.rubyguides.com/2018/05/singleton-pattern-in-ruby/
Dynamically setting Rails default_url_options in Heroku review apps
I love Heroku review apps but not when hypermedia URLs point to the parent staging app. Don’t worry I’ll tell you why this happens and how to fix it by dynamically setting Rails default_url_options in Heroku review apps.
How to Write and Promote a Programming Blog Post [Screencast]
In this screencast, I explain how to write, release and promote a programming blog post on various social platforms. Even if you don’t have an audience yet. I present my typical routine and tools I use when submitting a new post. I also explain several SEO aspects related to blogging and show that post can appear at the top of Google Search Results for your choosen keywords right after submitting it. [more inside]
8 Ruby Gems We're Loving in 2018
Our Rails dev team wrote about the gems they’ve used and loved so far in 2018. What helpful gems have you used recently? [more inside]
Use beautiful binary literals in Ruby
It’s Tapas Tuesday, and today I’m freeing up the very first RubyTapas episode! It’s a quick video about avoiding the need to do octal math in your head, and using beautiful binary literals instead.
Itinerary of a software company until the GDPR deadline - part 1
With T minus 3 days until the GDPR deadline, Phusion is putting the last checks in place. This mini-series is meant to illustrate a bootstrapped team’s approach to ‘GDPR compliant’: https://blog.phusion.nl/2018/05/22/itinerary-of-a-software-company-until-the-gdpr-deadline-part-1/
29+ Ruby Gems For Building Command Line Programs
As a professional programmer, you know automation can help you complete repetitive and time consuming tasks quickly, whether you’re a freelance-consultant, have a full-time position or you’re founder who owns a niche website or micro SaaS app. [more inside]
Hosting Static Website on Dokku with Free Cloudflare CDN and SSL
Dokku is dev ops for dummies and a simple way to deploy web applications on a barebones VPS. In this blog post, I will describe how to use it to host a static website, and setup global assets caching with free Cloudflare CDN and SSL certificate. [more inside]
Implementing DSL in Ruby: CSV importer
Step-by-step tutorial. No complicated metaprogramming, just blocks and lambdas.
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: