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.
My Notes about a Production-grade Ruby on Rails Deployment on Google Cloud Kubernetes
I’ve been learning and managing a Kubernetes Engine deployment on Google Cloud. I shared some bits in this blog post and would love to have insights and suggestions as well.
Design Patterns in Ruby: Strategy Pattern
Design patterns can be powerful conceptual models for thinking about how to solve problems in software development. I wrote about implementing the Strategy Pattern in Ruby, using Devise/Warden as a practical example. [more inside]
The Definitive Guide to Loops in Ruby
There are many ways to write a Ruby loop. How many do you know? In this article you will learn how to use methods like times, each_with_index & the while keyword.
Ruby on Rails - the method of work that will help you to create the best code
You may write tests just without any plan but if you want to build a Ruby on Rails testing routine that will make your code better please meet testing cycles: red, green, refactor -
Migrating to RSpec 3.7 and system specs
In my first post to Everyday Rails of 2018, I share my notes and impressions on migrating my RSpec book’s sample app to RSpec 3.7 and system specs, along with a couple of tips for those of you who can’t upgrade to Rails 5.1 quite yet but still feel some feature envy.
New Planet Jekyll Snippets - Liquify Filter, Auto-Gen TOC, ... Thks @ddprrt
Hello, I’ve added three new snippets to the Planet Jekyll collection, that is, a liquify filter, a toc filter that auto-generates a table of contents, and a liquid tag example with custom includes directory lookup. Thanks to Stefan Baumgartner (@ddprrt) for initialy publishing / sharing the great snippets on the Fett.eu blog. PS: Add your snippets to the Planet Jekyll collection! Updates more than welcome.
Ruby on Rails 5.2.0 Changes and New Features
Upcoming features include ActiveStorage, built-in Redis Cache Store, updated Rails Credentials and a bunch of other cool things! Honorable mentions also to the new Stimulus Javascript Framework. https://www.driftingruby.com/episodes/ruby-on-rails-5-2-0-changes-and-new-features
Better File Uploads with Shrine: Direct Uploads
This is the 6th post in the series of blog posts about Shrine. In this post I explain the rationale behind doing asynchronous client side uploads, and show how to use Uppy to upload files to a simple endpoint, directly to Amazon S3, or even to an endpoint for resumable uploads. Read about it here.
We need add primitives in Ruby for compartmentalization (Ruby feature)
Submitted as a feature in Ruby trunk: Please share!
Do you use many social media providers in your app? You should know one pattern
Simple Factory pattern is about encapsulating object creation and it’s super helpful when you use many social media providers in your app to publish updates on user profile -
strings v0.1.0 initial release
The strings is a set of useful functions such as align, pad, truncate, wrap and more for transforming multiline, multibyte strings with ANSI escape codes. Try it out!
ledger-lite 1.0 - hyper ledger book for the distributed blockchain internet era
Hello, I’ve uploaded the version 1.0 of the new ledger-lite library / gem. What’s Ledger Lite? It’s a hyper ledger accounting book for the distributed blockchain internet era; add your transactions one block at a time; transfer crypto(currencie)s and balance the accounts. Happy new year. Prosit 2018! PS: You might also enjoy the new (free online) Programming Cryptocurrencies & Blockchains (in Ruby) book @ Yuki & Moto Press.
simple-admin v0.1.2-alpha released
simple-admin is an efficient and convenient framework for creating admin dashboards in an instant. Is a new way to customize your admin panel, demo.
You need acceptance tests for your app, check why
While unit tests are focused on a low level of interaction, acceptance tests are focused on a high level of interaction. What does it mean?
Using Kiba ETL & Sidekiq (or Faktory) together
I’ve been using Kiba ETL (Ruby data processing framework) and Sidekiq together in production for a while now, to write flexible data synchronisation jobs. [more inside]
Denormalized indexing with elasticsearch-rails
How to index multiple models in Elasticsearch using elasticsearch-rails gem
Urlify Functions & Its Implementation
Urlify Functions & Its Implementation
Rails: do you know 4 most important reasons to write code tests?
When I was starting my programming journey I didn’t care about tests. I launched my first startup and it was a maintenance nightmare. Verify if you know the most important reasons for writing code tests -
Awesome Ruby News & Stat(istic)s Page incl. (3x3, Conferences, Best Gems, and More)
Hello, I’ve started a new Awesome News Page @ Planet Ruby that collects ruby news incl. 3x3, 2.6, etc., conferences & camps, libraries, stats & benchmarks and more. How do you get your ruby news? How do you find libraries / gems? Anything missing. Updates welcome. Cheers. Prosit 2018!
Rails belongs_to association - refactor queries like you never did before
Since belongs_to relation is one of the most common association in each Rails application I bet that you deal with it many times in your application. I will show you how to refactor your queries and make them reusable -
Shoes Is Alive
Do you remember Shoes? It is a simple cross platform GUI for Ruby created by the mythical _why_the_lucky_stiff. Did you know it is still maintained? Shoes 3.3.4 runs on Windows, OSX, and Linux plus a few more variations like Raspberry Pi and FreeBSD. There are new widgets and features among the bug fixes. There is also a jRuby reimplementation of the original Shoes known as Shoes4. Start your exploration here and join the community on Facebook and Github.
simple-admin v0.1.1-alpha released
simple-admin is an efficient and convenient framework for creating admin dashboards in an instant. Is a new way to customize your admin panel, demo.