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: ActiveJob-Cron
ActiveJob-Cron lets you have recurrent job when using ActiveJob in a very simple way. However, for now it only has very simple functionality with some known issues, so I am also looking for any contributions!
In-Memory Fake Adapters
There are two common techniques for specifying in a test the behavior of a 3rd party system: [more inside]
Ruby on Rails 4.2 book update and XMAS special
I updated the content of my Ruby on Rails 4.2 book. I wanted to update it to the latest Ruby (2.2.x) and Rails (4.2.x) version before the 5.0 release. In that process I changed a lot of code examples to make the ebook better readable on small devices. I did the same with the text which means less text which gets to the point more quickly. As a christmas special I set the price to 0,99 USD: http://www.amazon.com/gp/product/B00YPU5MGS
How to access the Google Analytics API with Ruby
How to access the Google Analytics API with Ruby. A guide showing you how to access the Google Analytics API using the OAuth 2.0 flow for web applications and the google-api-client gem.
Reguler Expression
Here is my first blog.. Please check it out. http://botreetechnologies.com/regular-expression-basics/
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.