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.
Net::HTTP by Example / Net::HTTP Cheat Sheet @ Yuki & Moto Press Bookshelf
Hello, I’ve added the Net::HTTP by Example / Net::HTTP Cheat Sheet by August Lilleaas et al to the Yuki & Moto Press Bookshelf. Free Online Books (and Booklets) about Ruby ‘n’ Friends in the Manuscripts format and built with Jekyll and Octobook themes. Happy reading. Cheers.
Translate every Rails query in a SQL code - for learning and debugging
Rails to_sql method is a well known method for Ruby programmers but mostly junior developers may not be familiarized with it yet. It’s super helpful so it’s worth to mention it once again READ MORE
Do not run Rails with pending migrations
Learn how to ensure that Rails processes won’t boot up and make a mess without being up to date with database changes.
Tutorial: Distributed Tracing in Ruby with OpenTracing
Tracking a transaction across several microservices is hard. However, thanks to OpenTracing, a vender-neutral tracing API, this is getting easier. I show how to add distributed tracing to a pair of Sinatra apps and view those traces in Jaeger, an opensource distributed tracing system.
Frontend Fun with Rails 5.1 and Webpacker
Using the Webpacker gem with Rails 5.1 to easily and quickly get started with frontend frameworks, specifically Vue.js and React.
Routing form objects with Rails
A look at to_model and how to use it with form objects in Rails: https://christoph.luppri.ch/articles/rails/routing-form-objects-with-rails/
Dear Ruby (1): What about Arguments when Inheriting?
An idea that allows passing arguments when inheriting, making it easier to implement clean DSLs.
Order unique results in Ruby on Rails in an easy way
If you ever tried ordering unique results you probably know that it’s not possible to make this in a simple query because ActiveRecord requires to explicitly select each column you want to operate on. I want to know how to do this
Things I wish ActiveRecord had after using Ecto
Check out an article showing 5 great features Elixir’s Ecto has, from a Rails developers perspective! The article is here.
Comparing Timestamps in Rails
Dealing with all the various classes that store times and dates in Rails can be confusing, and even experienced developers get tripped up when comparing timestamps that look the same but actually aren’t. This short post will show you how to code defensively when testing and comparing times.
Hoe Developer's Guide - Build, Package and Publish Gems with Rake Tasks by Ryan Davis
Hello, I’ve added the Hoe Developer’s Guide - Build, Package and Publish Gems with Rake Tasks - Ready-to-Use Build Scripts by Ryan Davis et al to the Yuki & Moto Press Bookshelf. Free Online Books (and Booklets) about Ruby ‘n’ Friends in the Manuscripts format and built with Jekyll and Octobook themes. Happy reading. Cheers.
The ruby 2.5.0 feature nobody talks about
Since many years the ruby community asked to have branch coverage. That’s something that if you worked a little bit with JS frameworks you really missed. If you don’t miss it, you probably don’t know what is branch coverage and therefore you are in the right place. We have branch coverage now, and that’s great!
Testing your JavaScript... with Ruby?!
While Codest is primarily a Ruby shop, one of the many projects we’re building is in JavaScript. It’s a client-side library which runs in a pretty challenging environment: it has to support pretty much every browser in existence, including very old ones, and to top it off it interacts with a gaggle of external scripts and services. It’s tons of fun… read more here
It will save you hours of debugging - Rails queries with null values explained
A null value is something different than false. It may be confusing especially for Ruby developers. Build a valid query and deal with null values right - show me this tip
How I Start - Let's Build a Ruby Gem Together! by Steve Klabnik @ Yuki & Moto Press
Hello, I’ve added How I Start - Let’s Build a Ruby Gem Together! by Steve Klabnik to the Yuki & Moto Press Bookshelf. Free Online Books (and Booklets) about Ruby ‘n’ Friends in the Manuscripts format and built with Jekyll and Octobook themes. Happy reading. Cheers.
Dramatically increase your app performance - 6 ways to calculate things on a database
Managers would love that. Active Record provides nice, simple and powerful methods for counting things we have in our database - I want to improve my app performance
Best of Practicing Ruby (Book Edition) by Gregory Brown et al @ Yuki & Moto Press
Hello, I put together a new (free online) book titled Best of Practicing Ruby (Book Edition) @ the Yuki & Moto Press Bookshelf that collects the best articles from the practicing ruby series headed by Gregory Brown with guest chapters by Luke Francl, Magnus Holm, Aaron Patterson, Solomon White and others. Topics include: A minimal HTTP server - Event loops demystified - Parsing JSON the hard way - Tricks for working with text and files - Working with binary file formats - and much more. Happy hacking. Happy reading. Cheers.