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.
13 software design articles for 13 weeks of practice
A friend had asked me for recommendations for Practicing Ruby articles related to software design, so here is a big list of them. Enjoy!
5 Best Ruby on Rails Content Management Systems (CMS)
Content Management System or CMS is a tool to create, edit, and store content in a convenient way enabling even non-technical user to add new information, products and services with speed and ease. Read our article : 5 Best Ruby on Rails Content Management Systems
Rails Interactor Pattern - Part 1
The other day I was working on a Rails application that did some communication with the Mailgun API. I soon discovered that I wanted to have not only the hard work of calling the API done in my interactor pattern, but also make the decision if the call was successful or not. Read on here
date_period_parser
date_period_parser gem parses period string parameters like "2014-Q3", "ytd", "current-month" and returns start/end DateTime objects. Useful for filtering records in reports or search results.
Ruby 2.2.3 String Basics : Ruby Silent Cast Part 9
Ruby 2.2.3 string basics start_with?, strip and sub. Watch it here
N-gram Analysis for Fun and Profit
Break text into ngrams to find patterns & use with NLP algorithms
All looking rather Dashing
We love metrics, especially metrics that let us know how our applications are doing, so we recently spent a day experimenting with various dashboard solutions, until we found that Dashing was exactly what we were looking for:
Migrating Redis Data
Sometimes migrating data from between Redis instances is necessary, but not all of the tools are available. Review your options and their trade-offs:
Working Hard or Hardly Working, Part 1: Active Job
Background jobs can be hard to tackle when you’ve never written one before. A good introduction to asynchronous processes is Rails 4.2’s Active Job, which easily integrates with Action Mailer. This blog post explains the basics of inline vs. asynchronous processes, and walks thorough integrating a mailer into a background process.
rsssf gem - Tools & Scripts for the World's Largest Football (Soccer) Data Archive
Hello, I’ve put together a new rsssf library that that lets you work with rsssf archive pages. What’s the RSSSF? RSSSF stands for Rec.Sport.Soccer Statistics Foundation and collects football (soccer) league tables, match results and more from all over the world online in plain text for over fifteen years. Today the rsss archive is the world’s largest football (soccer) data archive. (Note: I’m not associated with the RSSSF). Anyways, ever tried getting any of the plain text archive pages into an SQL database (with tables such as leagues, teams, matches, etc.)? The new rsssf scripts and repos get you started. Cheers.
Actor Action Object
Learn how procedural code can be used in conjunction with object-oriented paradigm in your Rails projects Actor Action Object in Rails Projects
Object-oriented controversies: Tell Don't Ask vs the Web
A little brain dump of questions and thoughts about object-oriented principles and best-practices that have bugged me and kept me awake at night. Read more
How To Create Aliases And Functions For IRB & Rails Console
I love my BASH aliases and functions and I wanted to apply the same to my rails console. Here I describe how to do it.
Ruby String Basics Silent Cast : Part 8
Ruby 2.2.3 string basics slice, split and squeeze. Watch it here
RescueGroups.org API Ruby Wrapper
People need companions. We are a social species that enjoys surrounding itself with family and friends. But sometimes, and maybe more often than just sometimes, people crave companionship from something that cannot talk back. This is probably one of the reasons so many people like pets. A pet cannot disagree with you or say judgmental remarks as you fill up that wine glass for a fourth time. No, a good pet will simply exist near you, occasionally asking for pets and food. Over the past few months, as part of the Year of Commits initiative, I have built a wrapper for the RescueGroups.org API.
Let's talk about junior Ruby developer
Is there really a shortage of junior Ruby developer positions? Read more
pastel v0.5.0 released
pastel now allows to color multi-line strings and help checking if string has already been colored. Above all, it has brand new shiny logo!
How to identify design cues by looking at the tests? Part 2
Read it here: How to identify design cues by looking at the tests?
Turning the Tables: How to Get Along with your Object-Relational Mapper
Object-Relational Mappers, like Active Record, can be tricky to work with. They give us convenience, but with significant trade-offs. Here are a few tips on making your relationship with your ORM a healthy one. Read more
wpdb_activerecord iss a wrapper for the WordPress database, using ActiveRecord
If you'd like to do it in Ruby instead, then this library might help with some of the boilerplate. Read more
Ruby String Basics Silent Cast : Part 7
Ruby 2.2.3 string basics such as scan, scrub and indexing using regex. Watch it here
Rails Gem List
In this year, we go through over 10 rails projects. Rails is a awesome framework design for web development. And the community grows stronger. In the initial stage, we often reconstruct and redesign db schema on our projects, because we found feature related gems in our troubleshooting process. So we just collect those gems we ever found and felt awesome after trying. Hope other rails developers can easily to find useful gems before starting development. This list called “rails-gem-list”. Now this gem have those sections as below: * User * Active Record * Plugins * API * File Upload * Search * Scheduled/Recurrence Jobs * View Helper * Environment Variables * Admin Panel * Logging * Debug * Coding Style * Testing * Production link: https://github.com/hothero/rails-gem-list Read more
tty-screen v0.4.0 release
tty-screen gets bug fixes for screen size detection and a new shiny terminal colour detection.
Kill the conditional in Ruby with polymorphism
Quick rundown on refactoring a long conditional in Ruby by introducing objects to handle the logic. Read more
A Spectus Tutorial: expectations with RFC 2119 compliance
An introduction to Spectus, followed by some test examples. Read more