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.
Tutorial: deploying your Rails app via AWS Fargate
AWS Fargate lets you run Docker containers without managing infrastructure. Learn how to deploy your Rails app via AWS Fargate in this step-by-step video tutorial and blog post.
bootstrap_form 4.0 release planned for 2018
The bootstrap_form gem makes it easy to build beautiful forms with Bootstrap styles using the built-in Rails form helpers. The project has been around for several years and has over 1MM downloads. This year, after a brief hiatus, we are revamping bootstrap_form to support Bootstrap v4 and planning a big release. If you use bootstrap_form today, take a look at our roadmap to 4.0. We are always happy to welcome new contributors!
How to Speed Up Assets Precompilation Time in Ruby on Rails App
Every Rails developer know that asset loading may be really time-consuming. Here are some useful tips on how to speed it up: https://www.netguru.co/codestories/speed-up-assets-precompilation-time-in-a-rails-app
Building an App That Makes It Easy to Learn Japanese Characters (Rails & ReactJS)
A few months ago, I started learning Japanese for fun. I started with Duolingo app, but my smartphone had just died and I had to continue learning from my laptop. Unfortunately, it wasn’t possible… http://bamboolab.eu/blog/building-an-app-that-makes-it-easy-to-learn-japanese-characters-setup-rails-and-add-reactjs
Ruby (and Rails) Conferences in 2018 Around the World - What's Upcoming in 2018?
Hello, trying to collect all ruby (and ruby on rails) conferences (and camps) around the world in 2018. What’s upcoming in 2018? See the events page at planet ruby. Anything missing? Updates welcome. Cheers.
Compiling ruby - code and the presentation
I was interested in how the bootsnap gem works and found this Github repo.
The most important Ruby gems for testing
Test faster, better and easier your Ruby on Rails app with 4 most useful gems. Do you already use them? READ MORE
Private Attribute Reader
Utility gem to easily declare private attribute readers in the same way you currently declare attr_reader [more inside]
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. https://www.rubyguides.com/2018/01/ruby-loops-guide/
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 - http://pdabrowski.com/blog/ruby-on-rails/testing/red-green-refactor-cycle/
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: https://bugs.ruby-lang.org/issues/14337 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 - http://pdabrowski.com/blog/ruby-on-rails/refactoring/simple-factory-pattern/
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.