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.
Limited-time promotion from Upcase and RubyTapas
Upcase and RubyTapas are joining forces to offer a time-limited discount on their services (and special add-ons like a live AMA). [more inside]
Ruby's Mysterious Triple Equals Operator, a.k.a. Case Equality Operator
You may have never used Ruby’s triple-equals operator. But understanding it is key to unlocking the hidden power of case, rescue and other Ruby features. http://www.rubyletter.com/blog/2017/01/18/ruby-triple-equals-operator.html
Bundler and Gemfile best practices
Taking care of your Gemfile with basic hygiene and some ongoing love will make life for future you much easier: Bundler and Gemfile best practices
New Podcast from Table XI and Noel Rappin
I think people here might be interested in a podcast I’m doing, http://www.techdoneright.io/ – it’s about building better software to develop better careers, companies, and communities. The first episode has Jessie Shternshus of The Improv Effect talking about building trust and building teams, with some great advice on making feedback work. I’d really appreciate it if you checked it out and passed it along — http://www.techdoneright.io/001-building-trust — I think you’ll like it.
Played around Redis Keyspace Notifications with Ruby
I came across the so-called Redis Keyspace Notifications and played around it with Ruby. It basically acts as a Pub/Sub mechanism that enables clients to subscribe to a Redis channel and receive “published” events whenever a Redis command or data alteration is encountered. [more inside]
Introduction: ChartKich for easy data visualization & protyping in Ruby
Charkick make visualization of data easier in a Ruby on Rails application. Its quite easy to work with to create charts to make business decisions. This article is about the introduction to the framework. http://blog.redpanthers.co/chartkick-data-visualization-easy-ruby/
Integration Testing Ruby on Rails with Minitest and Capybara
Capybara is an acceptance test framework for web applications. This tutorial explains how to use it with Minitest for integration testing of Ruby on Rails applications. https://semaphoreci.com/community/tutorials/integration-testing-ruby-on-rails-with-minitest-and-capybara
A cleaner way to set conditional CSS classes on 'link_to'
Using inspiration from React, there’s finally a more elegant way to set multiple conditional CSS classes on link_to and other Rails tag helpers which take a :class option. No more string interpolation and messy logic in the views. http://www.carlosramireziii.com/a-cleaner-way-to-set-multiple-conditional-css-classes-for-link-to.html
Scale your Elasticsearch queries with filtered aliases
Learn how to scale-up your Elasticsearch usage through filtered aliases. The examples provided use Ruby and the elasticsearch-ruby gem.
Writing Clean Monkey Patches (Fixing Kaminari v1.0.0 ArgumentError)
In this article we delve into some clean monkey patching and fix an error with the latest version of Kaminari until the project releases a new version. https://solidfoundationwebdev.com/blog/posts/writing-clean-monkey-patches-fixing-kaminari-1-0-0-argumenterror-comparison-of-fixnum-with-string-failed
Introduction to the JSON API spec and Active Model Serializers
This weeks’ screencast covers the basics of Active Model Serializers and the JSON API spec for Rails to help you implement consistent, cacheable, and efficient JSON for your Rails APIs.
KaTeX bindings for Ruby
You can now render render TeX as HTML from Ruby via KaTeX, using the KaTeX gem. ✨
Packing & Unpacking: A Guide to Reading Binary Data in Ruby
How do you read binary files like PNG, EXE & ZIP? What is the best way to handle binary data in Ruby? http://www.blackbytes.info/2017/01/read-binary-data/
Is Ruby dead? Hell no! - Analysing RubyGems stats for 2016
Another year is behind us and many things have changed in the web development world. We did a little research on the use of Ruby gems and created some stats for 2016 which prove that Ruby is doing very well! Check out our blog post for more detail.
Passenger 5.1 released with major improvements in robustness, security, efficiency
Passenger 5.1 contains various improvements for minimizing and preventing down time, introduces more secure defaults and defense in depth, has become faster and uses resources more efficiently, improves developer productivity and updates various ecosystem integrations to stay ahead of the curve.
Complex Sorting in ActiveRecord
The thought process behind creating a simple object to help deal with complex ActiveRecord ORDER BY queries with a strong focus on the Single Responsibility Principal. [more inside]
Roar 1.1 and Roar JSON API 0.0.1 released!
Roar, the library for consuming and rendering REST API documents, has reached version 1.1! The new release includes compatibility with Representable 3.0 and various bug fixes. [more inside]
Ruby Survey Results (January 2017)
Here are the results from a Ruby survey I posted a couple of weeks ago. https://jasoncharnes.com/2017/01/16/ruby-survey-results-jan-2017/
Keep track of your #100DaysOfCode progress with 1hdoc
Are you joining #100DaysOfCode? 1hdoc makes easy to register and sync your progress. [more inside]
Listing the status of your migrations in Rails
db:migrate:status is a hidden treasure for checking the status of your migrations. It gives you an overview which migrations are applied, and which are still missing. https://christoph.luppri.ch/articles/2017/01/16/listing-all-your-migrations-status-in-rails/
Code reviewing as a mindset
I wrote this post about why I love code reviews, and my approach to them. I wound up taking the Ruby-specific stuff out, but hopefully you still find it useful.
[Screencast] Client Side Encryption
Add an extra level of security to your application with client side encryption. Even over an SSL connection, there are attacks which could expose your users’ sensitive information. Using JSEncrypt, learn how to encrypt on the client side and decrypt on the server side. https://www.driftingruby.com/episodes/client-side-encryption
tty-command v0.3.0 release
Newest tty-command adds ability to enumerate over the command standard output.