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.
Make your large number literals readable
If you’re new to Ruby from another language, you might not know about the features it has for formatting large literal numbers readably. Here’s a refresher in the form of a 45-second screencast!
Build a chat app with Ruby on Rails
In this tutorial, we’ll explore how to create a live chat system in Ruby while leveraging on the awesome features of Pusher Channels.
Ruby's magical Enumerable module
It’s time for another episode of Ruby Magic! In issue #13, we’ll look at one of Ruby’s most magical features, which provides most of the methods you’ll use when working with Ruby’s enumerable classes like Array, Hash and Range. We’ll learn about the Enumerable module and the Enumerator class, and we’ll make our own object enumerable by implementing #each from scratch. https://blog.appsignal.com/2018/05/29/ruby-magic-enumerable-and-enumerator.html
TestProf II: Factory therapy for your Ruby tests
Vladimir Dementyev in an article for Evil Martians’ blog continues presenting his doctor bag full of diagnostic and optimization tools for tests: TestProf. This time, the focus is on factories: how they can slow down your RSpec and Minitest testing suites, and what can be done about it.
Building a Rails 5 JSON-based API? Easily transform incoming and outgoing JSON keys
API clients send and receive camelCase formatted keys. Your Ruby API code uses snake_case keys. Just add this gem: json_key_transformer_middleware
Conditional execution with DSL in Ruby
Replace if’s or exceptions with DSL: https://railsguides.net/conditional-execution-with-dsl/
Nice SQL prettifier for ruby
Nice SQL prettifier for ruby: https://github.com/alekseyl/niceql [more inside]
How to add Material UI to your Rails + React App
Add Material UI to your Rails + React App! [more inside]
Async Reverse Geocoding with Ruby and Geocoder
Reverse geocoding using the Geocoder gem. https://reinteractive.com/posts/354-best-practices-async-reverse-geocoding-with-ruby-and-geocoder
The Case for before_validation Callback: Complex State Normalization
A few months ago I wrote a blog post about ActiveRecord before_validation callback and how it is used for wrong reasons and concluded that in most cases this is not something we should be using routinely. However, I missed one appropriate use case for it which might be quite common in Rails apps, so this might be an excellent opportunity to get back to before_validation callback and show its other side. [more inside]
Spina CMS 1.0 released
After more than 3 years we are releasing Spina CMS 1.0! [more inside]
Zero downtime migration from Enum to Single Table Inheritance
Interested in migrating existing application architecture from Rails enum to single table inheritance, without users experiencing any downtime? This post details strategies for planning and implementing a successful architecture refactor. [more inside]
How to replace jQuery with Vue.js in Ruby on Rails apps
Ever wanted to switch from JQuery to Vue.js? Check out how in this article
Our Favorite Ruby on Rails Talks from RailsConf 2018
Didn’t get to go to RailsConf this year? We rounded up six of our favorite talks from the conference for you to check out. [more inside]
APISnapshot now publicly available on GitHub
APISnapshot is built using Elm and Ruby on Rails. Today we’re happy to announce that the code is publicly available on GitHub.
Capybara inconsistent click behavior and flickering tests
Sometimes writing feature specs can be painful. A short story of how Capybara tests were cured. Read the article.
Integrate Webpack to Middleman more easier
Use external pipeline have many steps to integrate webpack with react.js or vue.js, this gem gives you a better choice. https://github.com/elct9620/middleman-webpacked
Memory Efficient Redis Ruby gem
Freshly released gem for nice and easy Redis memory optimization: https://github.com/alekseyl/me-redis [more inside]
A Better Dig Method
Better Dig A better dig method allows unorganized hash data to fetch by indifferent keys with custom configuration and default params.
Choosing Rails Application Templates
You can set up your Rails app the same way every time using a template that meets only your preferences. [more inside]
Itinerary of a software company until the GDPR deadline - part 2
Part 2 in the mini-series following Phusion’s steps to meet the GDPR requirements; the one where we go a little overboard (in a positive way!) mapping and modifying our systems: https://blog.phusion.nl/2018/05/24/itinerary-of-a-software-company-until-the-gdpr-deadline-part-2/
Running Chrome Headless, Selenium and Capybara inside GitLab CI and Docker
Capybara + Selenium + Chrome Headless fail with mysterious errors when run in GitLab CI and Docker. Here’s how we debugged and fixed it.
Feature Tests vs. Integration Tests vs. Unit Tests
Why are there so many different types of tests in Ruby on Rails and how are they different from one another? Read the article