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.
Rubygems Monthly #2: Sinatra 2, Bundler 1.15, Rubocop, CanCanCan 2, Devise, Puma and
Gemnasium recently started to do monthly digest of some notable gem releases, here’s the second edition. :) [more inside]
Speeding Up Rendering Rails Pages with render_async
Adding new code to Rails controllers can slow your pages down. Find out how to make rendering your Rails pages faster. [more inside]
Deploy early and often
How can you deploy features that are not production ready yet? https://buildtoship.com/deploy-early-and-often/
Universal feedparser gem v2 Adds HTML Feeds w/ @Microformats (h-entry, h-feed, etc)
The universal feedparser gem that reads web feeds in XML (RSS, Atom) and JSON (JSON Feed) now supports HTML feeds w/ Microformats (h-entry, h-feed, etc.) Note: Microformats support in feedparser is optional. Install and require the the microformats gem to read feeds in HTML with Microformats. Happy publishing w/ web feeds. Cheers.
Digging into various gemspec file specifiers
I was cleaning up a gem’s packaged files and did some investigation around how various gems specify their file lists. Some interesting bits around “git ls-files” and whatnot.
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: https://denysmedynskyi.github.io/RubyC-2017-review/
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: https://github.com/BaseSecrete/redis_dashboard
Faker Gem: Fake Data Generation in Ruby
Fake Data Generation in Ruby: Faker Gem
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 (https://github.com/palkan/n_plus_one_control) 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. https://rubygarage.org/blog/three-database-architectures-for-a-multi-tenant-rails-based-saas-app
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! https://www.driftingruby.com/episodes/autocomplete-with-html-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
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.