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.
You Don’t Have to Fail While Installing Ruby on Rails on Windows 10
This tutorial explains how to properly set up Ruby on Rails working environment on Windows 10. This might be especially helpful for those who prefer Windows on their work computer.
Oligarchical Saas with CanCan
What happens when your large, production SaaS application relies on CanCan, but you have a small pool of high value clients who can’t agree on what they want their roles’ abilities? One of my latest posts dives into the real world problem, the code, and offers a solution that won’t leave you pulling your hair out. Read more
Turning a data set into a game
Some notes on a side project around turning a data set into a game.
On Design Patterns
Rubyists have always had a strange relationship with design patterns. They smell a little too much Java, like people in starched shirts and ties writing serious software for humorless people. Yet Ruybyists use and rely on patterns just like all developers. We’ve even been known to have the occasional religious war over them. Lets take a look at design patterns; where they come from and where they’re going. Read more
The Rubyist's Guide to Memoization
This article covers one of my favorite techniques for improving performance: memoization. It’s a source of easy little performance wins that eventually add up and only occasionally reduce your application to a heap of smoldering rubble. Only very occasionally. - http://blog.honeybadger.io/rubyist_guide_to_memoization/
[video] Using and Abusing Ruby for Computer Science Great Good
A live demo talk, where we will playfully take a tiny subset of Ruby and explore how far it can be taken and what can be built by exploiting a single language feature. In the process, we’ll learn about (or revise) some interesting computer science and explore a less common paradigm of programming. Read more
Ruby Under The Hood: Memory Layout of an Object
You will learn how much memory a Ruby object needs & a fun experiment you can try!
Slim down hefty Rails controllers AND models, using domain model events
Learn how to put your controllers on a diet without bloating your model classes, using the observer pattern (but not Rails Observers!). A refactoring screencast and article from the RubyTapas archives, now free to all.
Beyond `tail -f`: powering up your sleuthing skills with Logstash+Kibana
You’ve likely stared into the abyss of a seemingly untraceable bug, exception, or performance problem. In this guide, I show how to use the ELK stack + lograge to build a powerful investigation platform for a Rails app.
Rails: Configuration over Convention
Use the AController class to load an AModel instance, then render it using a_template.html.erb. In this blog post, we throw Rails conventions out the window and learn just how much you can customize the usual model/view/controller interaction through configuration. We’ll expand your understanding of how your app’s components work together.
Ruby-like language written in Go
Hi, I am currently working on an project called Rooby, it’s an Ruby-like object oriented language written in Go. I already support some important features like: Read more
[GEM] Dockrails - Simple CLI to Generate and Run a Rails environment with Docker!
Many of us have been struggling to setup a usable and efficient docker development environment for Rails App. Read more
[Gem] Mecha - Rails apps generator
Mecha generates Rails apps with some defaults. Read more
[Screencast] Drag and Drop with Interact.js
Using Interact.js to create draggable and droppable items in our view, we can use AJAX callbacks on events to interact with our Ruby on Rails application. Also, learn how to use Ruby Assets to manage our Javascript Libraries. https://www.driftingruby.com/episodes/drag-and-drop-with-interact-js
pluto.starter - planet quick starter kit - (auto-)build yr own (static) news sites
Hello, I’ve put together pluto.starter - a new quick starter boilerplate / setup / ready-to-fork repo for planet pluto that lets you (auto-) build your own (static) planet news sites from web feeds w/ ruby in minutes. Step 0: Download and Unpack (or Clone). Step 1: Install the Planet Pluto Machinery / Tool. Step 2: Build the Starter Planet. That’s it. Cheers. Happy planet. PS: Why not design your own planet themes? It’s just embedded ruby (ERB) with Rails-style helpers (link_to, stylesheet_link_tag, etc.), see planet.starter.html.erb to get started.
Had bad experience with Rails Flash messages?
Handy cheat sheet for flash messages in Rails:
🤖 Unicode::Emoji
The unicode-emoji gem provides a regex to match for basic emoticons and the various emoji sequences, like modifier sequences, region sequences, sub-region sequences, keycap sequences, and ZWJ sequences!
How to Define Classes in Ruby
Everything in Ruby is an object and this post shows how to define one, take a look: Read more
Stripe webhooks in Connect applications
I have recently implemented Stripe webhook integration for my application that uses Stripe Connect with managed accounts. As it turned out, the process for working with webhook events in Connect applications is slightly different, and there is no official documentation or public blog posts that cover these nuances. This short write-up is meant to bridge this gap
Reliable notifications between two apps or microservices
Let’s say you have 2 systems or microservices (or processes). And one of them needs to be notified when something happened in another one. You might believe it is not so hard unless you start thinking about networking, reliability, and consistency. Read more
TheOpenCMS. Weekly report #5
Hi there! The Adventure of TheOpenCMS project continues. Changelog vol. 5
Automatically generate the Devise acceptance tests
devise-specs is a Rails generator that adds the Devise authentication acceptance tests when you run the devise generator.
Switch users with UserSwitch
UserSwitch is a Rails plugin for switching between commonly used roles and users. It’s particularly useful for development and staging environments when you often need to switch between various accounts. It saves you from the hassle of logging in or out.
Unit testing with VCR
In this blog post, I’ll show you a simple way to test applications that perform external service requests, in Ruby, using the VCR gem! Enjoy: