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.
Learn to crawl and scrape websites with Ruby Mechanize
Learn how to code and ship your Ruby web scraping project faster. Grab your copy of the Ruby Mechanize Handbook, an easy to follow introduction to crawling and scraping websites with Ruby Mechanize. Or check out the HOWTO scrape websites with Ruby & Mechanize guide for free.
tty-prompt v0.9.0 with paged menus!
Newest tty-prompt adds ability to paginate menu lists for select, multi_select and enum_select prompts. Also this version fixes prompts to accept multibyte characters.
Introducing AnyCable, Action Cable on steroids
Action Cable is a fantastic interface — if only it would be performant enough in production! Unfortunately, running vanilla Action Cable will result in high memory consumption and poor handling of concurrent requests. Read more
Ruby 2.4 adds infinite? and finite? methods to Numeric
infinite and finite methods now available on Numeric. More details
Add Disqus Comments to Rails
I found a lot of outdated information about adding Disqus comments to Rails applications, which resulted in the plugin not loading, so I’ve put up updated information about how to quickly add this to your project. Read more
Cracking the Box Open with Module Factories
This post discusses a very useful feature that only a few Ruby programmers know: the module factory. Let’s dig into the object model to acknowledge how modules work under the hood, then walk through some possible use cases of modules and how these compare to module factories.
Capturing STDERR from within Ruby Programs
Recently I needed to capture the text of stderr in a Ruby script and the methods I knew for shelling out were insufficient. This post introduces the Open3 class and how it helped me. Read more
[Screencast] Sidekiq Basics
Sidekiq is a Ruby Background Processor that manages its queue with a Redis service. Learn the basics of Sidekiq and integrating it with ActiveJob. https://www.driftingruby.com/episodes/sidekiq-basics
Ruby Podcast Episode 20
Now available: Ruby Podcast #20
Replace the boring rails scaffold
With scaffold_pico you can create your own pretty administration in a second. Read more
Gem for testing APIs with rspec
rspec-api_helpers is a real gem that makes it easier for you to test your API responses in zero time. JSONAPI and regular JSON are supported but it has a modular design which means you can even write your adapter/
New gem read_source
An alternative to the method_source gem with the ability to open any Ruby method right into your VIM editor.
Webpack in Rails 5.1
Webpack will be available in Rails 5.1, in this screencast learn the basics of Webpack
Why We Chose Rails for Our MVP
I wrote a short piece on Medium about why I always come back to rails when I want speed and sanity. Check it out here: Our Path to MVP: Choosing Rails
Pokrex: web app built with Rails 5 + ActionCable + ReactJS
Pokrex is an online planning/pointing poker tool, which has clean UI and easy/friendly to use. It’s built with Rails 5, using ActionCable to do most of the communication and ReactJS for page rendering.
Benchmarking communication between Elixir and Ruby
Benchmarking communication between Elixir and Ruby described in last 3 posts. Read more
Cmd2Json: covert output to json for atomic logging
cmd2json coverts all output and the exit status (+host/timestamp/custom tags) of a command into a single json blob that can be logged atomically. Great for crons or other command output you want to log.
Differences in version handling between RubyGems and npm
Gareth Visagie talks about the differences in version handling between RubyGems and npm and the complications of making a tool work for both.
How to Use Any Gem in a Rails Production Console
If you’ve ever needed to use gems like benchmark-ips or awesome_print in production and they’re not available in the already bundled gems, check this post out!