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.
Hot news about Machine Learning in Ruby
Follow us on Twitter: https://twitter.com/NonWebRuby [more inside]
Everything You Need to Know About Ruby Constants
Learn how Ruby constants work, how to avoid a security problem & 7 methods to work with constants! http://www.blackbytes.info/2017/07/ruby-constants/
Html2Docx has new feature Image Support
Html2Docx has new feature Image Support :) https://github.com/MuhammetDilmac/Html2Docx/wiki/Image-Usage
Using InfluxDB with Ruby
InfluxDB is an open-source time series database, written in Go. It is optimized for fast, high-availability storage and retrieval of time series data in fields such as operations monitoring, application metrics, and real-time analytics. [more inside]
[Screencast] Virtual Columns with JSON Data Types
Continuing from the previous episode on Virtual Columns in MySQL, we take a deeper dive into virtual columns in Rails 5.1 and use them to parse JSON Data Types with adding indexes to the virtual column. https://www.driftingruby.com/episodes/virtual-columns-with-json-data-types
jasony gem adds SON (Simple Object Notation) w/ optional commas, #-comments, etc.
Hello, I’ve updated the JSON readers gem called jasony. The next next generation JSON parser / reader included is SON.parse for the Simple Object Notaton (SON) format by Aleksander Gurin et al. Using SON you can use Ruby (Shell)-like #-comments, optional commas, and more. Note: SON.parse is the same as JSON.parse( SON.convert(text)), that is, SON works like a “pre-processor” for JSON. Cheers.
How to get your Rails data into your React component with webpacker
A quick tutorial on using Rails model data inside a React component, when using the webpacker gem. It works for versions of Rails 4.2 onwards.
[Video] Building a Rails 5 app in Real-Time
RubyThursday founder, just completed a 5 day challenge of building a Rails 5 app in real-time. Here’s a quick recap for each day, where she builds a photosharing app. [more inside]
Sanity 101: 8 Quick Checks for Your Rails app
As a consultant, I’ve looked over a shitload (how many? probably ~150-200) over the last 12 1/2 years in the Ruby on Rails community. I haven’t worked on most of them, but I do get invited to look over, review, audit, and provide feedback on a lot of those. [more inside]
Upcoming built-in upload Solution for Rails 5.2 (ActiveStorage)
DHH just tweeted about an upcoming new feature to Rails 5.2, a built-in file upload management solution called ActiveStorage. In this post I discuss what it helps solve and what other scenarios will still require something else entirely.
Real World Rails Background Jobs
Background jobs are used to do many different tasks. In this article, explore and learn from the source code of a wide variety of jobs from real world Rails apps: https://www.eliotsykes.com/real-world-rails-background-jobs
Getting Started with Docker and Ruby on Rails
Docker helps you isolate your app and its environment, removing dependency issues (“it works on my machine”), and allowing easy replication across environments, and scaling as your app grows. [more inside]
Use Refinery CMS as a headless API-first CMS
In this article, i will explain how to use Refinery CMS with its Rest API to manage the content of a Middleman static website hosted on the Netlify platform. The final goal for me is to have one headless CMS app for multiple clients and one Middleman website hosted on Netlify for each customer. http://www.brice-sanchez.com/use-refinery-cms-as-a-headless-api-first-cms/
Is it always a good idea to split long methods into smaller ones? An experiment.
Have you heard an opinion that it’s always a good idea to split a long method into smaller ones? Some people disagree. In my new post I conduct a refactoring experiment, with the goal of breaking up a hard-to-split method and STILL getting better readability. If this example can be improved by splitting, does that mean it’s always better? [more inside]
Start using ActiveSupport::CurrentAttributes in your Rails applications today!
ActiveSupport::CurrentAttributes provides a system-wide per-request attributes for Rails applications, but it lands on v5.2. We have extracted that into a gem you can use today (compatible with Rails >= 4.2): [more inside]
Bare Metal Ruby
How to install most recent stable version of Ruby on Linux, without using rbenv or alternative version managers. The goal was to find a fast and reliable approach for provisioning expendable virtual machines for Rails development environment. [more inside]
jasony gem - read JSON with comments, unquoted keys, multi-line strings, etc.
Hello, I’ve put together a new JSON readers gem called jasony. The first next generation JSON parser / reader included is HANSON.parse for the JSON for Humans (HanSON) format by Tim Jansen et al. Using HanSON you can use comments, unquoted keys, multi-line strings, single-quoted strings, trailing commas, and more. Note: HANSON.parse is the same as JSON.parse( HANSON.convert(text)), that is, HanSON works like a “pre-processor” for JSON. Cheers.
Contained clutter: lowering the risk of moving fast
Every line of code is that much more technical inventory that carries risk and management burden. How can we make efficient progress without impeding our delivery of features? An article on separating cluttered areas to move fast safely.
Tensorflow comes to Ruby
A talk by the founder of Tensorflow.rb landed on our RubyML list. [more inside]
[Day 2] Building a Rails 5 app in Real-Time
In this 5 Day challenge RubyThursday and Ruby RoundTable founder builds a photosharing app with Rails 5 in real-time. Here’s Day 2, in progress now (and RePlay for latecomers) »
Linz.rb Talk - Quik - The Missing Project Template Scaffolder (for Ruby)
Hello, the slides for today’s Linz.rb talk about “Quik - The Missing Project Scaffolder (for Ruby)” (All-In-One-Page Source in Markdown) - Quick start your ruby gems, your sinatra apps, your jekyll sites ‘n’ more w/ project templates (from GitHub). What do you use to get (quick) started with new gems, sinatra apps, jekyll themes? Let us know.
[Day 1] Build a Rails 5 app in Real-Time
In this 5 Day Challenge, RubyThursday and Ruby RoundTable founder Melissa Wahnish builds a photosharing app with Rails 5, in real-time. Here’s a REPLAY of Day #1 »
SOL[I]D - Interface Segregation Principle
Even if we don’t have interfaces in Ruby, we still can learn something from it. http://rubyblog.pro/2017/07/solid-interface-segregation-principle