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.
warden-github-rails
warden-github-rails allows you to use GitHub as authorization and more. Use organizations and teams as means of authorization by simply wrapping your rails routes in a block. Also useful to get a user’s details through OAuth.
Unemployed Rails developer? No problem
You’ve learned Rails, but nobody will hire you? Here’s an exact guide to solve your “no professional programming experience” problem once and for all. And become a freelance Rails developer.
Building JSON APIs in Rails 5 today!
An article I wrote about building JSON APIs in Rails 5… today! How you can try out Rails 5 using the new –api version, which gives you a scaled down, API specific version of Rails functionality. This article also covers some caching and middleware request throttling.
Respect HTTP Caching
An article about utilizing HTTP caching and how it works, especially for your JSON APIs. How Last-Modified and Etags work along with some benchmarks showing the speed improvements.
Seattle.rb Weekly Ruby Quiz - BrainCandy
We post one question a week. Solve them in any language you want, but of course we’re biased and love to see ruby. Read more
Localized cache store in Rails
If you cache localized views in your Rails app, consider including I18n locale into the global cache key. In my post, I describe how to do it without monkey patching existing Rails cache stores.
Monitor and analyze your Passenger apps today with Union Station
Union Station is Phusion’s brand new take on Passenger application monitoring and analytics. Union Station aims to help you easily find performance bottlenecks and errors in your application and to help you fix them. blog.phusion.nl/2015/…
JavaScript Debugging for Rubyists
Brief translation guide to help Rubyists discover the JavaScript equivalents of common Ruby debugging techniques
Building Minimal Docker Image for Rails App
How to build minimalistic Docker image for Rails application:
Rails Interactor Pattern - Part 2
This time I’m adding some helper methods to our interactor, which will make handling failure cases easier and more obvious. Here’s the link to part 2 or first catch up with part 1.
Sequel vs Active Record ORM Benchmark on PostgreSQL
In my machine Sequel has better performance than Active Record -
XML or JSON API?
In lesson #4 of the Build Less, But Better Software email course, we looked at 5 ways APIs help businesses increase revenue. In lesson #5, we’ll look at technologies that go into delivering API, XML and JSON
Ruby 2.2.2 Array Basics : Part 8
Ruby 2.2.2 Array methods such as frozen?, freeze, hash, include?, index, replace, insert, join, keep_if, last, collect, map and map with_index. Watch it here here
Inch reaches 0.7.0
Inch, a gem to measure inline documentation coverage, has reached v0.7.0. Inch CI is already running it!
Image Processing in Rails using AWS Lambda
A common problem with image processing Rails apps has been the excessive memory consumption within the worker processes. When images are large enough, our worker will consume a big portion of our memory and will take forever to finish. If you are deploying on Heroku, you will probably be paying for the cheapest worker and the R14 notification emails will be flooding your inbox. Learn the solution here
CrashBreak: A new approach for dealing with production exceptions and bugs in Ruby
Hello! Some time ago I was working on an application that had many bugs and reproducing each one was time consuming. I thought about making this process faster and more user-friendly. Recreating bugs manually in the browser by typing data and setting all connected modules in the same way like when the exception occurred can be annoying. Also, there is no certainty that the bug is reproduced in the same way it occurred. The other problem is that many of the bugs are hard to reproduce and connected to different layers of the system. The idea of CrashBreak is to reproduce the exception from the staging server on the programmer’s computer by running a request test. In order to do this the library needs to dump your system piece by piece. Currently we have 3 dumpers: for database, all request data (headers, url, body) and user session. We tried to create the whole system in an adaptive way. It means that you can write your own extensions to adapt the library to your needs. The beta of the service is ready and available at Please give it a try and send me your feedback so I can make CrashBreak even better. Thank you kind strangers! Michał Janeczek
How to turn they’re back into they’re
There’s an encoding problem that’s especially tricky to solve – when a curly quote turns into ’, or an em-dash turns into —. Learn why it happens, and see a code snippet that reliably fixes it.
How to Serialize an Array of Objects.
Hello everyone! I have been facing a problem. I have an object (class) named Note, and I have a global variable array of these objects named notebook. What I intend to do, is to make the notebook persist between sessions. I’ve tried Marshal but maybe it was all wrong. Please help. Here’s the link to the source.
SEO for Rails
Some search engine optimization advices for a Rails app. Along with available tools in ruby :
Create Ruby Gem by Example
Learn how to build a Ruby gem by creating one
Ruby 2.2.2 Array Basics : Part 7
Ruby 2.2.2 Array methods such as drop_while, each_index, empty?, fetch, fill, index, first and flatten is covered. Watch it here here
Major.Minor
Maximize delivering features, minimize trouble. Read more
How I spent two weeks hunting a memory leak in Ruby
This is a story about hunting a memory leak. A long story, because I go into much detail.
What's new in Rails 5?
Rails 5 is a new major version of Ruby On Rails, this implicates that the Rails API and requirements can change to deprecate, add new, and/or improve existing APIs, but also to take advantage of important changes in the Ruby language as well. Read more
Engines Before Microservices
An opinionated post on starting with engines when breaking apart a monolithic Rails application.