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.
4 Ways to Parse a JSON API in Ruby
A quick tutorial on four popular ways to parse the JSON results from a RESTful API. Includes code snippets for net/http, HTTParty, rest-client and Faraday.
Using conditionals inside Ruby's regular expressions
In this post, we’ll dive into regex conditionals and discuss how to work around the limitations in Ruby’s implementation of them http://blog.honeybadger.io/using-conditionals-inside-ruby-regular-expressions/
Rubinius, Inc - A Benefit Company
Rubinius is now backed by a benefit company, one that wishes to support the development of Rubinius in a holistic way.
Effective TDD With Ruby: Vim Setup
How to use Vim for fast TDD with Ruby. We’ll discuss how to build your own setup, standing on the shoulders of giants, plugins for syntax, autocomplete, find in project and themes carousel. Read more
How to Traverse Foreign Ruby Code
A Ruby on Rails project will most likely contain large amounts of third party software. Software written by other people can fluctuate greatly in terms of documentation. Even very well documented software might have pieces that are more shrouded than others. Read more
Deploying Your Docker Rails App
Leigh Halliday shows how to deploy a Docker Rails app to a production environment on Heroku. This is part 3 of a 3-part series on testing and deploying Rails apps with Docker.
Testing a Little More
If you have a codebase that hasn’t been tested, or the tests have not been maintained, it can be overwhelming to add test coverage. We’ll walk through one simple way to test a little more.
Solving a production performance issue with Union Station
We wrote an article on how to use Union Station to improve your web application performance. In the process we found a performance issue in Union Station itself and subsequently solved it! Read it here
Digging Into The Finder Object Pattern
The concept of “skinny controllers” and “fat models” is a fairly common one in Rails. But what happens when you need to construct complex queries that don’t really belong in a controller, but are too overwhelming for your model? The finder object pattern is an elegant solution for this problem, and this blog post digs into the rhyme and reason behind them.
Jekyll 3.0 (& Jekyll Assets) Now Live - The World's Most Popular (Static) Site Builde
Congrats to Parker Moore and team for the latest and greatest update. What’s news? Read more
fedux.org – Care about "OOMScoreAdjust" in your systemd-enabled docker-images
Recently I put together a docker image with “PostgreSQL 9.4” installed from the project’s software repository on “CentOS 7.1” to back a rails application. Unfortunately I was not abled to run the “PostgreSQL”-server in a container based on that image. It failed with exit code 206/OOM_ADJUST. In this article I’m going to describe the reason for the failure using a minimal failing example.
How to Deploy a Ruby on Rails Application to Elastic Beanstalk
I wrote an article about deploying a Rails application to Elastic Beanstalk, while automating the whole process with Semaphore CI. Read the article.
Mapping Data with Representable - Part II
Recently I started a blog geared toward Ruby novices. My first series is a primer on using external APIs as datasources and mapping their data to ActiveRecord with the Representable gem. Part II is a beginner’s intro to the request/response cycle and some of the problems one can run into when mapping JSON documents to ActiveRecord objects.
Whats new in Rails 5?
Apparently a lot of things. Read more
Refactoring six-year old "one file" CSS - workflows, pain points, and results
@niedzielskiadam and I talk about the pain points in our old setup, our workflow for effecting the changes, and the results from a business point of view, down to hours taken and changes in revenue. Read more
Intoducing Shrine: A file upload toolkit for Ruby
I’ve just released Shrine, a new solution for file uploads in Ruby applications, I wrote a blog post explaining the motivation behind it.
[Lesson #2] 11 Simple Steps To Learn Ruby Faster
This 11-part email course will teach you how to use RSA techniques to learn Ruby and Rails faster than your friends. Lesson #2 show you how to choose a lovable project for practice.
Factory Girl Basics using Rails 3.2, Factory Girl 4.2 : Part 2
To learn how to create objects using FactoryGirl for has_many association, check out Factory Girl Basics using Rails 3.2, Factory Girl 4.2 : Part 2
Rails DB - 4 new features (don't forget to upgrade!!!)
Rails DB - https://github.com/igorkasyanchuk/rails_db New version of Rails DB gem is available 0.4. Read more
Run it in background job, after commit, from Service Object
There is this problem that when you schedule a background job from inside of a running database transaction, the background job can kick in before the transaction is commited. Then the job can’t find the data that it expects to already be there, in database. How do we solve this issue? Let’s schedule the job from Service Object after db commit. Read more
Factory Girl Basics
To learn how to create objects for has_one association, checkout Factory Girl Basics using Rails 3.2, Factory Girl 4.2
Self hosted Rails metrics app in less than 200 lines of code.
NewRelic is too expensive for your hobby Rails application and you still need to keep record of app’s performance for more than 24 hours? Try to create self-hosted metrics collector with Ruby, Sinatra, Grafana and InfluxDB in less than 200 lines of code.
Ruby 2.2.3 Symbol Basics : Part 2
Ruby 2.2.3 Symbol methods such as <=>, casecmp, empty?, intern, encoding, id2name, inspect, to_sym, length, slice, succ, swapcase and match is covered in this video
Chewy 0.8.2 is out
Hey guys! Here is a new version of the Chewy gem. Squeel adapter and ActiveJob strategy on the board.
Elasticsearch Part 8: Applying Filters
In this episode we show you how to apply filters in elasticsearch. We take the aggregates and build fitlers out of it. All done with beautiful URLs. Video