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.
Shrine meets Transloadit
I’ve recently released shrine-transloadit, a Transloadit integration for the Shrine file upload library. I wrote a post explaining the motivation.
Improving Rails Scalability with Better Architecture
Improving background jobs performance and memory consumption on Rails apps. A simple step-by-step example of how to make better background jobs. Check it out here
Essentials of Cache Expiration in Rails
Learn the essentials of cache expiration in Rails, and see how fundamental cache key composition is to a performant cache http://sorentwo.com/2016/07/11/essentials-of-cache-expiration-in-rails.html
[Screencast] ActionCable - Part 1 - Configuration and Basics
A walkthrough on configuring ActionCable with Rails 5. Learn how to configure your mount points and the basics of using ActionCable with your Rails application. https://www.driftingruby.com/episodes/actioncable-part-1-configuration-and-basics
Passing Parameters from controller to js in assets
js-namespace-rails new feature introduce into js-namespace-rails v1.0
Multi-model searching using Elasticsearch vol. 1
http://blog.ragnarson.com/2016/06/30/multi_model_searching_elasticsearch_1.html - the first post of a three-part series on using Elasticsearch to search across mutliple models.
Skip mailers while generating Rails 5 app
We can now skip Mailers while generating Rails 5 app [more inside]
Dockerize a Rails 5, Postgres, Redis, Sidekiq and Action Cable Application
http://nickjanetakis.com/blog/dockerize-a-rails-5-postgres-redis-sidekiq-action-cable-app-with-docker-compose - Learn how to install and use Docker to run a Rails 5, Postgres, Redis, Sidekiq and Action Cable app in development with Docker Compose.
Avoid cascading failures
http://blog.oogway.in/resilient-microservices/ - Slow services fail slowly. When a web service is responding slow - what are the choices to avoid cascading failures?
Rearmed v1.1.0 Released!
Adds String starts_with?, begins_with?, ends_with? aliases because the default ruby methods have an unintuitive grammar choice. Adds ActiveRecord find_or_create, reset_table, reset_auto_increment, dedupe. This library also includes an or method for Rails 4! Check it out https://github.com/westonganger/rearmed-rb
5 Awesome tools to keep your Rails code clean & organized
One of the main challenges in developing your own rails application is to keep your rails code clean. The rails experts at codebrahma have come up with this list of awesome tools that would help you keep your code clean and optimized for best results. [more inside]
Rubyconf Brazil 2016 new website is Open!
Don’t miss our annual Rubyconf in Brazil, it’s going to be on September 23rd and 24th in São Paulo City. Join us for our 9th consecutive conference, where we expect to have more than 1,000 attendees. We have around 80 confirmed speakers. You can buy tickets right now from our new website
How We Do Spikes
I wrote a blog post about our Agile process to manage risk, uncertainty and produce knowledge: https://medium.com/@sophiedeziel/how-we-do-spikes-4a43f0d19967 Should we replace Sprockets with Gulp? Is switching to a CDN worth it? Should we convert all our javascripts to coffeescripts? What should we do to avoid apocalypse?
5 Tips for Writing a Legible Regexp
Regular expressions can be tricky to write and downright impossible to read. They can also be incredibly useful. Striking a balance between power and legibility is achievable. Here are five of the best ways I know to do it. Read More
ExceptionNotification v4.2.0.rc1 has just been released
supporting Rails 5 and more. Please give it a try before we release the final version! https://rubygems.org/gems/exception_notification/versions/4.2.0.rc1
Playing with symmetric encryption using Ruby
A short introduction in symmetric encryption using Ruby and the OpenSSL::Cipher library Check it out
Errors can be indexed with nested attributes in Rails 5
Rails 5 has an option to index nested attributes errors. [more inside]
ActionCable under stress: fixing data corruption and socket leak issues in Rails 5
During performance testing of the Rails 5.0.0 release we discovered two bugs in Rails. One data corruption bug that occurs when two threads transmit on the same channel, and another bug causing socket leaks that could eventually make your server to grind to a halt. Read it here
Trying to match C-based Fast Blank with Crystal
In my quest to test Crystal as the ideal solution for native extensions for Ruby, I did a small proof of concept for Sam Saffron’s C-based Fast Blank gem. In this article I report the obstacles, how I overcome most of them, benchmarks and remarks on how to best use Crystal to accelerate Ruby itself. Check it out. Feedback is most welcome!
Finding and killing long running queries on PostgreSQL
Sometimes you feel like your Rails app is performing bellow your expectations. Maybe the reason behind it is a database problem.
AptWatcher — A Slack-friendly apticron replacement:
AptWatcher is a tiny Sinatra app that notifies your Slack channel about pending apt package updates.
Helpy 0.10.0 is out with custom themes support, live search and more
We are excited to announce Helpy 0.10.0 today, bringing with it a large number of improvements, bug and security fixes. If you are not familiar with Helpy, it is a great new Rails open source helpdesk project. [more inside]
Are "Functional" objects a thing?
I’ve seen the pattern a lot recently and think it is entirely unnecessary. Wrote a quick article on the topic on why I think it is an anti-pattern. Interested in other viewpoints.
Use as option to encode a request for a mime type in controller tests in Rails 5
We can provide a specific mime type to a controller tests request using as option in Rails 5 [more inside]