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.
Ranking implementation using Postgres window function in Ruby on Rails app
Here is quick and simple approach for implementing ranking functionality in RoR app with PostgreSQL database
Tuts+ Article: How to Create and Publish a Jekyll Theme Gem by David Darnes
Hello, Happy Birthday Jekyll! Celebrating 8 years. What’s News? Starting with v3.3 you can build ‘n’ use Gem-Packaged Themes. See the Tuts+ Article: How to Create and Publish a Jekyll Theme Gem by David Darnes. PS: I’ve started an Awesome Jekyll (Gem-Packaged) Themes page / collection. New themes include: Minima, Swiss, Athena, Leonids, Garth, and more. You’re more than welcome to add your theme. Happy Jekylling! PS: To get started with Minima - the built-in theme on GitHub Pages, see Hello, Minima!.
Active Admin
Admin section is a common module for most of the applications. For Rails applications we have a gem called Active Admin. That can be used to create application from scratch to admin interfaces with little effort. Checkout the installation, Authentication & Customization of Active Admin
Changes in Rails 5
Changes in Rails 5 Blog will highlight some cool features of Rails 5
Rails: Signing out from devices
A brief tutorial on how to allow an authenticated user to sign out from devices by invalidating logins. [more inside]
Ruby Memoization using Singleton Method
A new and most efficient way of Ruby Memoization:
Tracking SQL queries in Rails
This post shows you how sql_tracker gem works, and its features that may help you to track and analyze SQL queries:
Planet Jekyll's Static Website Showcase Update - Ten New Sites (Incl. Source)
Hello, I’ve updated the Planet Jekyll’s Showcase for the world’s greatest static websites with ten new sites (incl. source). Did you know? Riding Rails Weblog, Ruby Language, Yarn Package Manager, Travis Foundation, Docker: Welcome to the Docs, Elixir School, Swift Weekly Brief, “csv,conf,v2”, Climate Treaty Texts from Paris COP21, Raw Funk Maharishi are built with… Jekyll. Any site missing? Add your site. Happy Jekylling. Cheers.
Overcoming Primitive Obsession
Ruby primitives are so powerful that we use them everywhere in our code, even when we shouldn’t.
Are service objects enough?
Recently I tried to find my perfect approach for service objects, how to call them, what to return from them and how to organize them. You can read me thoughts here:
On requests processing with Puma and Unicorn. Yet another introduction for newcomers.
A post describing basic differences between servers, focusing on multi-process single/multi thread approaches. Can be found here
Smart support of ElasticSearch indexes with Chewy and Capistrano deployment
Capistrano::Chewy gem allows to manage and continuously rebuild (reset) ElasticSearch indexes with Chewy and Capistrano v3 on the remote servers. It adds automatic conditionally reset for only modified Chewy indexes so the developer do not have to build them manually. Moreover, it adds the possibility of manual index management with the base Chewy tasks.
3 rules of a good pull request comment
Briefly: be descriptive, add the “why” part and be polite. For more on this — “The 3 rules”
Snapshot & Backup ElasticSearch documents and indices on GCE.
Ever needed to backup / snapshot Elastic Search Document to Google Compute. If yes, read through the blog to know how
Debugging Ruby programs on OSX with lldb
Here’s a quick look on how to use lldb, the debugger that ships with XCode, to debug your Ruby programs:
[Screencast] Rails API - Active Model Serializer
Using ActiveModel::Serializer, learn how to create the JSON responses for your Rails API application. ASM is a great object oriented approach to building a JSON API. https://www.driftingruby.com/episodes/rails-api-active-model-serializer
Rack::JetRouter 1.2.0 released -- a very fast routing library
Rack::JetRouter 1.2.0 released. Rack::JetRouter is a very fast routing library for Rack application, derived from Keight.rb framework.
London Ruby Unconference is this weekend!
There are a few last tickets for this event taking place on Saturday, Oct 22, 2016 in Holborn, London, Uk. [more inside]
Postgres and the Rails Sandbox
This post demonstrates how to automatically “heal” an aborted Postgres transaction in a sandboxed Rails console.
Calling Ruby and requiring gems in Java/Gradle projects with JRuby
I briefly look on how I can reuse my Ruby code with JRuby in a Java project.
Top 33 Jekyll Plugins & Extensions (by GitHub Stars ★) - And the Winner is...
Hello, Still early and rough - I’ve put together a directory for Jekyll plugins & extensions listing the top 33 gems (ranked by GitHub stars ★). And the winner is… Cheers. PS: Add your plugin! How it works? Add a new entry in the Awesome Jekyll Plugins page. Example: [more inside]
On HexaPDF and Releasing Early
After my lightning talk about HexaPDF at Euruko 2016 I was asked why I haven’t released the source code to HexaPDF, yet. I have my reasons and in this post I will shed some light on them.
Creating Machine Learning Systems with JRuby
Ruby is not best-known for addressing machine learning tasks. Yet, it has an excellent reputation for fast prototyping. My latest Sitepoint article Creating Machine Learning Systems with JRuby explains how to prototype machine learning systems with Ruby by classifying BBC sports articles.
How we save money by using DDD and Process Managers in our Rails app
How we save money by using DDD and Process Managers in our Rails app shows how we detect problems with one payment gateway and switch to another one in the moment of crisis.