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.
Fighting the Hydra of N+1 queries
A huge insight into the problem of N+1 queries with Rails: starting from the junior-level stuff (what is it and how to fight it) moving to the usage of bullet gem, hardcore problems caused by the complexity of the application and DRY/OO patterns used — and ramblings on how to tackle the problem at its root. [more inside]
Building tools and building teams
I finished up my series about building tools to remove distractions with (with links to the previous 4 articles at the top if you missed them)
Testing Rails API with ActiveModelSerializers using RSpec
Thanks to this installment you can learn how you should test your API and how to write clean and readable tests using RSpec.
Setup your Ruby on Rails Server with Ansible
Go from development to production for your Rails app with Ansible. Come and watch how you can get your Rails app into production on your own server in about half an hour.
Ruby vs Python, the Scripting Wizards
Ruby vs Python, the Scripting Wizards
Template Rendering in Rails
Hi, I just made a slide to introduce how Rails renders our view templates and want to share with you. If there’s any problem or feedback please just email me :-) [more inside]
[Screencast] Routing Partials
The routes file can grow to be unmaintainable and messy. Learn to keep things organized by extracting out blocks of routes into their own files. https://www.driftingruby.com/episodes/routing-partials
Do analytical research using Ruby
The example of how you can use twitter-gem made by Erik. How to use Twitter Search API and what you can do with it? [more inside]
Testing a Feature with Rails and RSpec: A deep dive
One of the things I hear most from developers who are new to Ruby and Rails, or just to testing is, How do you get started? What should I test? The value of testing your code and the confidence it brings is already apparent, but how to make it happen seems to be missing. In this post I address how I approach testing a fairly simple, but non trivial feature from start to finish.
Ruby/Rails Interview Questions
Pre-compiled list of questions with regard to Ruby and Rails for interview candidates. Contribution is more than welcome.
Density Map in three ways
Detailed article explaining different solutions to the same problem, each with different time complexity. From O(n^4) to O(n^2).
One more article about ruby best practice
Everyone engineer should read tech literature in free time. When you are reading you learn a lot of new things. You read about someone’s experience, best practice and fails. With that useful information you can see new opportunity, can make your code better and more stable, can create new features better and faster. In this article I want to share some good practice that I have read in tech literature. [more inside]
How to find and fix bug in JRuby and don't go crazy
The story about fixing bug in JRuby.
Don't Use Objects as Hash Keys in Ruby*
An observation in performance over different kinds of keys used for Ruby’s Hash. Read On
A better "bundle update"
If bundle update for your Rails projects is a risky a frustrating process, try bundleup instead! I wrote bundleup to use the same Bundler commands behind the scenes, but added some nice enhancements. My favorite feature is how it color-codes the gems that will be upgraded according to semver, so you can immediately spot the minor (yellow) and major (red) version changes that might cause your app to break. Install it with gem install bundleup and check out the documentation on GitHub!
A Ruby interface to the Lionshare API
API that providing historical cryptocurrency market data.
APIQ - new name for KMS
Due to different name collisions, I’ve decided to choose new name for KMS. Since today, it is ApiqCMS, or just APIQ :-) [more inside]
Ruby: How a Language Reflects its People
What are the values that entered into the language by way of its core committers and what are the values we identify with as a community? How can making these values explicit help us foster a better community? What might Ruby be like if its community were primarily French, German, Italian rather than English-speaking and Japanese?
How to Build a Ruby SlackBot
A simple to follow tutorial on how to easily build SlackBots with Ruby!
Start using GraphQL in Rails
A step by step tutorial on getting GraphQL set up in your Rails application.
57 Best Ruby Gems We Use at RubyGarage
Ruby gems are libraries that offer a variety of pre-made solutions for developers that save time and money. We’ve highlighted a few essential gems that a full-fledged Ruby developer can’t live without.
What if I Tell You That Ruby on Rails Is Scalable
Scaling your Rails application is necessary when the number of user requests starts choking your server. We’ll describe in detail several techniques you can use to help your server function optimally.
Ruby on Rails Web Application Vulnerabilities: How to Make Your App Secure
What do you know about web application security vulnerabilities? We’ll talk about attacks that can occur and how to protect against them.
SOLID Object-Oriented Design Principles with Ruby Examples
SOLID principles are five object-oriented design principles that help developers design flexible architectures that are easy to update and extend over time. In this post we’ll talk about the practical side of applying SOLID design patterns and will provide examples in Ruby.
Best Ruby on Rails Content Management Systems (CMS)
With a ready Content Management System, it’s simple to control all the content on your website. We’ll review several Rails-based CMSs that you can use to rapidly build a website.