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.
New gem: minitest-hyper
minitest-hyper is a new plugin for everyone’s favorite testing framework that generates an attractive single-page HTML report for your test runs. The reports are self-contained, using JS and CSS assets from public CDNs, so they can be distributed by email.
Understanding Asset Pipeline Plugin
The asset pipeline provides a framework to concatenate and minify or compress JavaScript and CSS assets. It also adds the ability to write these assets in other languages and pre-processors such as CoffeeScript, Sass and ERB. Read more at RailsCarma’s Blog
Ruby Time & Date Classes
Learn to work with time & date objects in Ruby with this tutorial :) http://www.blackbytes.info/2015/12/ruby-time/
The Minitest Cookbook - updated edition
I’ve released a new version of The Minitest Cookbook that’s been revised to include changes in the latest version of Minitest (5.8) and Rails 5, and it includes previously unreleased chapters and a set of handy cheat sheets for your wall. Until Friday, you can get it here for 25% off.
Building Cross Model Search with Ember, Rails, and Elasticsearch
In part 2 of his series, Rob Guilfoyle explains how to build an autocompleting cross model search for a Rails app.
Ruby on Rails E-commerce API for Beginners. Part 3.
MLSDev developers continue to write Ruby on Rails E-commerce API Tutorial for Beginners. The third part deals with registration and authorization. It is an essential element in creating e-commerce platforms so cannot be omitted in the development. If this is of your interest, you will find more details here: http://mlsdev.com/blog/44 [more inside]
Handling Paginated Resources in Ruby
Extracting data from an API can get messy once pagination is involved. We’ll look at a few ways of dealing with this complexity to enumerate paginated resources, including “recursive each” and the Kernel#to_enum method. https://rossta.net/blog/paginated-resources-in-ruby.html
Rails isn’t trendy anymore. Hooray for Rails!
Rails is still alive and strong, but it’s not the flavor of the day anymore. Who cares?
Inspect Network-Traffic in Capybara with Poltergeist
A short example on how to inspect your Network-Traffic inside a Capybara-Spec when using Poltergeist as driver.
Ruby Refinements
The Ruby language provides many powerful tools for software engineers to utilize. For instance, classes that have been previously defined and evaluated can be reopened and changed. This is commonly referred to as “monkey patching”, a term which elicits almost universal disdain among Ruby developers. Luckily, monkey patching is not the only option for making these types of changes.
You’ll love module_function
A quick summary what module_function is and when to use it.
Sometimes, It's Good to Be Shy
An overview of some of the techniques which may be used to write flexible enough code which smoothly adapts to change.
Kafka for Rubyists
A brief introduction to Apache Kafka and how you may be able to leverage it in your applications.
Exploring unit testing in Ruby
In this article I explore different ways to unit test in Ruby, how to isolate your code from dependencies in your tests, and how it may change how you write your code.
Beerpay.io released - A way to monetize open source projects
Beerpay comes to fill that gap between making open source and making a living. In this post you can read the basics of beerpay.
11th edition of RubyIssue(s)
This is the 11th episode of our guided tour through the Ruby universe of issues. Bonus: Bi-monthly email delivery. In this episode you will read about issues from Shoulda-Matcher, Bootstrap-Sass, Lotus and Rubocop.
You’ve Got a Friend in Friendly_Id
There’s always more than one way to solve a problem. One common solution to ugly urls in Rails applications is slug generation; but there are so many different tools out there — how do you know which one to choose? The friendly_id
gem is a super powerful solution to this problem, and provides a wide range of functionality. This blog post explores why you’ve got a new friend in this gem.
Getting started with Distributed Ruby (DRb)
The Ruby stdlib contains a little known library called dRuby, which allows multiple Ruby processes to talk to each other over the network. Find out how you can use druby for distributed computing: http://nithinbekal.com/posts/distributed-ruby/
Cleaner RSpec examples and failure messages
Some examples on how to write concise specs by taking advantage of RSpec’s built-in matchers, and a way to get less failure message spam. Read the post
Practical Rails Projects and Delivery Timelines
We’ll review the types of projects you’ll be able to create, and how long it might take to complete your project in this article: Practical Rails Projects And Delivery Timelines
Book published: Trailblazer - A New Architecture For Rails
Trailblazer brings a high-level architecture for building web applications. By introducing operations, forms, callback and policy objects, representers and more, software gets better structured, faster and testable. [more inside]
Introducing activejob-retriable: Automatically retry failed jobs with an exponential
This gem aims to mimic most of the functionality of Sidekiq’s RetryJobs middleware. [more inside]
Wye Tech News #2
Here is the second issue of our weekly compilation of interesting news and articles about Ruby, Rails, JavaScript and web development related stuff that we found during the week.
Gem 'ryakuzu' - interface for schema.rb
Ryakuzu may be useful, when you need to quickly change the name/type of columns, and tables, or remove/rename it. Ryakuzu provides simple CRUD operations on your schema.rb and starts the migration for you. All temporary migration files are automatically deleted after migration. https://github.com/ID25/ryakuzu
How to connect to databases with different schemas with Sequel and Roda
Minimal example of how to connect into multiple databases with different schema inside one Roda app using Sequel