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.
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: http://www.techoalien.com/2016/10/ruby-memoization-using-singleton-method.html
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: http://stevenyue.com/blogs/tracking-sql-queries-in-rails/
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. https://blog.dnsimple.com/2016/10/overcoming-primitive-obsession/
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: http://blog.ragnarson.com/2016/10/19/are-service-objects-enough.html
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 https://mewerain.blogspot.in/2016/10/elasticsearch-snapshot-and-backup-onto.html
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: https://christoph.luppri.ch/articles/2016/10/17/debugging-ruby-programs-on-osx-with-lldb/
[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.
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.
Static websites with webgen
The static website generator webgen has been in development for over a decade now. It provides the essential functionalities out of the box and is easy to use, even for non-programmers. Designed to be a general purpose static website generator it can be used for any kind of website, not just blogs. [more inside]
Is it important to write tests when you're coding for yourself?
You have a flash of inspiration for a new program to write. You open your editor to start working on it, and hear a little voice in your head saying, “You know, you really should test your code…”
Ways of Handling PayPal Refunds in Rails
PayPal Checkout includes simple to robust payment solutions to allow merchants and developers to select an integration option most appropriate for their site and their customers. Here’s Some of the Ways of Handling PayPal Refunds in Rails
Tips for Writing Fast Rails: Part 1
Is your Rails application taking forever to respond? Is ActiveRecord being super slow loading a big set of tables? Here are 3 tips for writing fast Rails applications: http://www.ombulabs.com/blog/performance/rails/writing-fast-rails.html