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.
Creating a Heroku-like Deployment Solution with Docker
This tutorial will show you how to write a simple Ruby cli script, capable of deploying a sample application to a remote host, similar to Heroku’s. It will also have other commands for rolling back to previous versions, attaching longs and tracking which application version is running.
DeviseInvitable + Rails API
Using the goodness of :invitable with a Rails API backend and Emberjs [more inside]
RubyC 2017 Conference review
I just visited the biggest Ruby conference in Kyiv, Ukraine and wanted to share my thoughts about it:
Ruby Gem to have a Redis dashboard inside a Rails app
I was tired of connecting manually to my Redis servers to get some basic health informations. So I built this Sinatra app to have a dashboard inside my Rails app. I just open source the gem today:
Faker Gem: Fake Data Generation in Ruby
Fake Data Generation in Ruby: Faker Gem
Power Moves: SQL Server on Linux, Rails, and Docker
Getting started with Rails v5.1 and SQL Server using Docker.
How to deal with major Ruby on Rails upgrades (like moving from 4.1 to 5.1)
Gemnasium has been working on various apps, maintaining them, upgrading them and hosting them After all those years, we came with a simple, yet efficient, framework to upgrade apps. [more inside]
N+1 Control: prevent the N+1 queries problem
NPlusOneControl () is a new tool to prevent N+1 problems. [more inside]
Three Database Architectures for a Multi-Tenant Rails-Based SaaS App
When designing a multi-tenant architecture for your SaaS app, you need to provide a safe solution for tenants. In other words, you need to safely separate each tenant’s data. We’ll describe how to design the database layer and what Ruby gems you can use for multi-tenant Software as a Service applications.
Rails Autocomplete with Selectize and Searchkick
A simple overview of how to create an efficient autocompleting select menu in Rails 5.1 using Selectize and Searchkick (ElasticSearch). [more inside]
Ruby Standard Gems
Ruby’s standard library will be gemified. This means that stdlibs will be updatable as gems, without having to wait for a new release of Ruby itself. I put up stdgems.org to keep track of which Ruby version comes with which standard gems.
[Screencast] Autocomplete with HTML Results
Working with an autocomplete can be very simple. However, things get complicated when you try to use HTML markup in the displayed results. Learn how to use HTML markup within your autocomplete results!
Do you imagine yourself programming for 50 years?
Would you even want to? What do you think? [more inside]
Tracebin - A "bin"-style APM
Tracebin is a lightweight and simple APM that works with your Rails or Sinatra web application. You create a “bin” and install the agent, and we’ll collect performance statistics and display the most recent 24 hours of data on a simple page. Tracebin is an open-source project that we built from scratch! Here is an educational article on how it’s all put together! GitHub | Website
When you're a Rails developer but your client wants WordPress
When you’re a Rails developer but your client wants WordPress [more inside]
Universal feedparser gem adds authors & tags/categories for RSS, Atom, @JSONFeed
Hello, I’ve updated the universal feedparser gem. What’s news in v1.2? Added authors and tags/categories for all formats, that is, RSS, Atom and the new JSON Feed format. Use feed.author or feed.items.first.author or feed.items.first.tags and so on. PS: What’s JSON Feed? See the talk notes “Meet Jason Feed - The New Web Feed & Content Syndication Guy”.
Testing cookies in rails
Testing cookies in rails, in especially important difference in handling (and therefore testing) of cookie’s expiration time in different kind of specs (controller specs, request specs, feature specs). [more inside]
Last 36 hours for the Rails Composer Kickstarter
You can support the work required to update Rails Composer for Rails 5.1 with a contribution to the Kickstarter campaign. Rewards include two months of GoRails and one month of the Learn Enough Society. There’s just 36 hours left to reach the fundraising goal.
Refactoring series: acts_as_list part 3
In this refactoring adventure I’m going to focus on just one 11-line method, and surprisingly, there’s a lot of things that can be improved in just one method. Watch as I choose better names, strip unnecessary variables, work with some ActiveRecord internals and make code intent clearer.
How to convert a Ruby primitive to a custom domain object in two minutes
You already know why you want to use domain objects instead of Ruby’s built-in primitives… but what do you do if you’ve already used strings and integers all over the place? Did you code yourself into a corner? Are you going to have to change lots of code, and potentially break things? Of course not! You can convert a Ruby primitive into a custom domain object in just a few minutes…
Conference Talks, Interviews, and the Pen!
As many of the people who follow this feed are tech conference speakers, I’d be interested in hearing feedback on my take of most tech talks.
My 2.5 Year Journey with Vim and Why I Switched Back to Sublime Text
My 2.5 Year Journey with Vim and Why I Switched Back to Sublime Text
Ruby Case
Well, today I bring the way how Ruby treats it’s switch case. Let’s go, check out this post: