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.
CircleCI private Slack notifications with a Ruby AWS Lambda
This article shows how to build a ruby lambda with some additional gems (and specs) to create a private Slack notification when CircleCI builds fail. [more inside]
5 mistakes we made in early phase of rails project
I tried to summarize the most painful mistakes we made in the early phases of rails project. Enjoy and share your thoughts: https://codecoding.net/ruby/on/rails/2018/12/07/top-5-mistakes-in-early-rails-project.html
MiniI18n - New release with custom plurals rules
I just released a new version (v0.8.0) of MiniI18n gem with custom pluralization rules support. Languages vary in how they handle plurals, now you can reflect these variations by adding custom rules per locale. [more inside]
Elixir/Unix style pipe operations in Ruby
This proof of concept demonstrates a concise/elegant syntax for pipelining and method composition! [more inside]
A little Active Storage cheat sheet
Have a look how to display, download and stream files with Active Storage.
Using Postgres' citext to clean up messy downcase code
You may want to use the “citext” Postgres type to clean up messy downcase code when looking up slugs/emails/etc in your Ruby/Rails app. In this decision, I quickly explain how this works!
Upgrading Ruby on Rails Insights and Strategies
https://blog.kiprosh.com/upgrade-ruby-on-rails-0eda77ac-6ba2-4893-8001-9a033702f9ef/ For the past few months at Kiprosh, we’ve done versions upgrade of multiple mid to large scale Ruby on Rails applications. One of them was running Rails version 3.2.22. That’s where we found out that, we need to make a lot of changes in our codebase to run our application on version 4.0. Hence, we thought to write this blog post to share our insights and recommended strategies for upgrading such mid to large Rails applications.
Iterating over large tables in MySQL using ActiveRecord
https://medium.com/@rajagopals/activerecord-on-mysql-iterating-over-large-tables-with-conditions-453bd8761c8b . In a high volume analytics system, tables with millions of records are quite common and iterating over the full table or a subset of these tables becomes often necessary — whether it’s to perform computations, run a migration, or create parallelized background jobs on the records. It becomes important to write efficient code for iterations because there is often an order of magnitude difference between a good and not-so-good approac
Ruby Quiz - Challenge #8 - Decipher Super "Sekretoooo" 240-Bit CryptoKitties Genome
Ruby Quiz - Challenge #8 - Base32 Alphabet - Convert the Super “Sekretoooo” 240-Bit CryptoKitties Genome to Kai Notation. Annipurrsary! Let’s celebrate one year of CryptoKitties - yes, more than one million cute little cartoon cats on the blockchain. Let’s convert the super “sekretoooo” kitty genome - that is, a 240-bit integer number where every 5-bit block is a gene - into the base32 (2^5=32) kai notation. Happy genome genetics slicing with ruby.
SOLID & Ruby in 5 short examples
In this article we’re going to explore the following topics:
Rails is great because "all the decisions are made for you", right?
Rails is great because “all the decisions are made for you”, right? But I wouldn’t be writing this if this were truly the case. ;-)
Passing current_user by default in Sidekiq
Give this blog a read if you need to access current_user in Sidekiq. [more inside]
Big on Heroku: Scaling Fountain without losing a drop
A one-stop guide on getting the most out of Heroku when scaling a successful Rails startup.
Building a DSL in Ruby - Part 2
We continue building our DSL in Ruby! https://revs.runtime-revolution.com/building-a-dsl-in-ruby-part-2-ca578dae804e
Modules in Ruby Part II
In this article, we’re going to explore the following topics:
Ruby Toolbox Community Survey Results
In November I ran a community survey to learn what users of the Ruby Toolbox would like to see improved to help them in finding healthy open source ruby libraries more easily - The results are now published
Stealth 1.1 Chatbot Framework Released
With new features like reply variants, your chatbot can utilize a single codebase but still be deployed to multiple messaging platforms. The release also includes many other great features to make building chatbots a lot of fun. https://whoisblackops.com/articles/meet-stealth-1-1
A Weird and Wonderful Trip through Ruby’s Standard Library
I spent some time looking through Ruby’s standard library documentation, keeping my eyes peeled for things I didn’t recognize. I found some pretty weird and wonderful things, and I wanted to share some of my favourites: https://link.medium.com/sI0iO8HqnS
How business transactions help decouple Rails controllers
Ruby on Rails enables us to develop features fast and focus on what matters the most. However, if we don’t pay enough attention to the structure of the code we may end up with a well-known problem: fat controllers. This blog post explains how to achieve a more decoupled codebase through a series of refactorings, resulting in code that is easier to maintain and reason about: https://medium.com/textmaster-engineering/how-business-transactions-helped-decouple-rails-controllers-at-textmaster-4e211f026b93
Ruby Conferences 'n' Camps Around the World in 2019 @ Planet Ruby Calendar
Ruby Conferences ‘n’ Camps Around the World in 2019 @ Planet Ruby Calendar. What’s Upcoming in 2019? Anything missing? Updates welcome.. Cheers. Prost.
How to Use State Machines in Ruby
What is a state machine? How do you build one in Ruby? Find out in this NEW article! https://www.rubyguides.com/2018/12/state-machines/
Build Instagram by Ruby on Rails (Part 1)
I’ll guide you step by step learning Ruby on Rails through building the Instagram application. https://medium.com/@luanotes/build-instagram-by-ruby-on-rails-part-1-fef7837ee399
[Screencast] Creating a Simple Slack Bot
Slack is a great application to keep in contact with friends, coworkers and a community. With bots, its capabilities are endless. In this episode, learn how to create a Slack Bot to interact with. https://www.driftingruby.com/episodes/creating-a-simple-slack-bot