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.
My awesome RSpec hacks
Check out my gist article. Hope you will find something useful hacks to make you testing easy
Nine tips for Rails migration mastery
Several guidelines to help you navigate the many database changes you’ll make throughout your career as a Rails developer. [more inside]
Browserino -- A user-agent string parser.
Tired of asking your users for their browser / OS and their versions? Do you want to know wether they are visiting your website on mobile or would you like to know their locale to be able to provide a better experience? Then check out Browserino, a user-agent string parser with Rails support.
A fast multi-token string replace library for ruby for non-regex use cases
Created this gem since I need something faster than gsub. Wraps an opensource C implementation of the Aho-Corasick algorithm [more inside]
Runtime Introspection in Ruby
Ruby offers a variety of methods that allow you to ask an object about its capabilities (which messages/methods does it respond to?), its variables and constants, and its backstory (the object’s class and ancestors). [more inside]
How to: Get most of the database cleaner
Road to fast and sane specs continues, this time we fine tune database cleaner setup, to use mix of transactions, deletion and truncation ⚡️ ⚡️ #testing #ruby
Ruby Conferences & Camps in 2018 Calendar Update @ Planet Ruby - What's Upcoming?
Hello, I’ve updated the ruby conferences & camps in 2018 calendar. What’s upcoming? October: Sat 6 (1d) Ruby Russia @ Moscow, Russia // Thu+Fri 25+26 (2d) RubyConf Malaysia @ Kuala Lumpur, Malaysia ++ November: Fri 9 (1d) Keep Ruby Weird @ Austin, Texas, United States // Tue-Thu 13-15 (3d) RubyConf @ Los Angeles, California, United States. Any others? Please tell. Cheers. Prost. PS: Did you know? The calendar page (source) is built with … jekyll. PPS: For 2019, see the ruby conferences & camps in 2019 calendar page.
A quick overview of what's a class in Ruby
A 2minutes video about what’s a class in Ruby
How to Create Paid Order Using Shopify API
This article shows how to create a paid order using Shopify API. The tutorial utilizes the ‘shopify_api’ Ruby gem.
A wrapper to Nubank's public API
This gem provides a wrapper to Nubank’s public API. [more inside]
How to migrate monolith to the scary new version of Rails
Common techniques and tips for doing painless incremental Rails upgrade
Making a Ruby executable
Read about how I build an executable for InvoicePrinter in 10 minutes.
Why the CSV standard library is broken (Part II) - The Wonders of CSV Formats
Hello, I’ve written a follow-up on why the CSV standard library is broken, broken, broken (and how to fix it).
Let’s have a look at the wonders of CSV formats / dialects such as MYSQL CSV export or PostgreSQL CSV or TEXT export. In a nutshell - the standard CSV parser is a (simplistic) kludge
using string.split() and, thus, needs to get replaced with a “real” parser that can handle more “edge” cases and formats. Questions and comments welcome. Cheers. Prost. PS: If want to see other (more) CSV formats / dialects pre-configured and supported “out-of-the-box” in the new csv reader, please tell.
#to_s or #to_str? Explicitly casting vs. implicitly coercing types in Ruby
This week in AppSignal Academy: the difference between explicit casting (with #to_s) and implicit coercing (with #to_str) in Ruby, and the difference between typecasting Leonard Nimoy and Michael Keaton. 🖖🦇
How TextMaster reduced deployment time by using multi-stages dockerfile
Learn how TextMaster leverage multi-stage dockerfile to drastically reduced deployment time of its Rails applications. More information here
Rails + Sequel + Apitome API Starter KIT
With an example of a resource
The Singleton module in Ruby - Part II
In this article, we’re going to explore the following topics:
Recursion exercises in Ruby
Hello everyone! If you want to practice with recursion, here is link to post with link to github repo with exercises and answers in ruby: [more inside]
Securing your Ruby and Rails Codebase
In this article, we will walk through how we can secure a Ruby, Rails, or Rack-based app. [more inside]