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.
Decoupling from Rails [Part 1] - Repository and UseCase
This article will show how to decouple business logic from Rails-specific code.
[Brasilian] Pratical Guide: Spaceship-operator
Take a look at : , a programming blog for people that already code, wanting to learn Ruby.
When you notice something strange in your benchmarks
Remember there are two layers of your code - Ruby code that you wrote and Ruby’s C engine. Here’s a story of unusual benchmark results that lead to changing Ruby’s internals.
Gem elixirize now out!
Add Elixir’s pipe behavior to Ruby with the ᐅ method.
Using [array].include? often, did you consider Set?
Writing [array].include? often? Do you know that in many cases Set[array].include? might be faster because it offers a constant look up time when array look up is linear - grows with the size of the array. Check out a simple benchmark results. And compare it to Java (if you’re interested)!
Best Books to Learn Ruby on Rails - intermediate level
We’re back with the ‘Best Books to Learn Ruby on Rails’ series! This time: RoR books for those with some experience in their background.
Why I Stay Behind The Version Rat Race
What are the risks associated with being on the latest gem versions? Should you allow auto-updates to dictate when your software versions get bumped? Read more
With pattern in Rails
A little pattern I have been using lately, inspired from Ember.
Refactoring Ruby: From Subclass to Registry
From developing a solution to gradually improving it by listening to the pain Read more
Create a landing page with Sinatra, Google Spreadsheets, and Ruby
A practical example of using Google Spreadsheets as a datastore for a tiny app that take user details. Build a landing page with Sinatra and Google Sheets.
KMS Models v0.8.0 release
This KMS Models release adds feature allowing to create Model’s elements outside of admin section, i.e. via forms on website.
Ruby 2.4.1 Released
Ruby 2.4.1 has been released. Along with the usual tweaks, Onigmo has been updated (and now supports a new operator), OpenSSL (2.0.2 to 2.0.3), RubyGems (2.6.8 to 2.6.10), a race between read and close has been fixed, fixing including multiple proc blocks as literal hash values, and a lot more besides.
RubyMine 2017.1 is released!
RubyMine 2017.1 is released featuring Docker and RuboCop support, test generation for Rails, Puppet improvements and lots of other things. Learn more and give a try
A Brief History of Dependency Management
We take modern dependency management solutions for granted these days, but how did it all start? What are the most important ideas and when and where were they introduced?
Specification Pattern
Implementation of Specification pattern described in “Domain-Driven Design: Tackling Complexity in the Heart of Software” by Eric Evans. Flexible way to combine and chain business rules by using boolean logic. Read More.
Always install Bundler alongside Ruby with rbenv
A quick tip that lets you setup gems that always get installed when using rbenv and ruby-build to install Ruby. Never kick yourself that you don’t have Bundler for this version of Ruby again.
Words Counted: A gem that counts!
A gem that count words frequencies, longest words, total words in paragraph and much more! Read more
27 Gems I use in almost every project and pretty much can’t live without
The Rails community thrives on its open source gems. Implementing a well written, well tested and vetted gem can make the difference between days and weeks of development of new features. Read More
Practical Computer Science in Ruby: Using Stacks to Solve Problems
Learn how to apply a simple (but powerful) computer science concept to solve problems with Ruby.
The Cracking Monolith: The Forces That Call for Microservices
A majestic monolith works in most cases. But when your Rails app grows multiple apps within, and meets high traffic with large volumes of data — that’s the right time to start thinking about microservices. Read more.
Let’s make Ruby app servers & operations better! With your feedback.
I am Hongli Lai, developer of the Phusion Passenger app server. We think the state of Ruby application delivery & operations can be made easier, faster, more reliable, and better. So we’ve embarked on a mission to do precisely just this (and to improve Passenger while we’re at it). Read more
Select or Create Field with Selectize.js
Sometimes you need users to create associated records while filling out a form but it’s hard to do with the built-in Rails forms. Selectize.js gives us a great option for building a select or create field all-in-one to choose associated records or create new ones when filling out a form. https://gorails.com/episodes/select-or-create-with-selectize-js
Rack-reqorder: Metrics, exception monitoring and request/response recording for rack
rack-reqorder is a middleware that sits in rack and allows you to: Read more