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.
Google Maps + Places Autocomplete with Rails, Turbolinks & Stimulus.js
Google Maps has not played well with Rails and Turbolinks. Using Stimulus.js, we can make it work seamlessly using custom events in Javascript to tie the two together allowing us to add maps and location search autocomplete from Google Maps extremely easily. Watch the screencast
Upgrading Rails: Tracking down deprecated callbacks in Rails 5.0
If you find yourself upgrading a Rails 5.0 app, I wrote a monkey-patch that makes it easier to track down deprecated callbacks 🔎 [more inside]
Optimised Docker builds for Rails apps
Hi, I wrote a post on how I do Docker builds for Rails apps. It features some tips such as having an external, shared cache for gem bundle and precompiled assets to speed builds up. [more inside]
[Screencast] Google Maps API with StimulusJS
Add unobtrusive maps to your application using StimulusJS to tie in Google Maps Javascript API and Places API. https://www.driftingruby.com/episodes/google-maps-api-with-stimulusjs
Major New Release of Gollum Wiki
Gollum is a lightweight Ruby wiki system that uses git as a backend. It started life as the engine behind GitHub wikis, but the open source version has since evolved significantly, leading to the recent release of version 5.0. This includes large performance gains, and many much requested features, such as: [more inside]
The Real Difference: `self.method_name` vs `class self`
I wasn’t satisfied with some SO answers on the difference between self.method_name
and class << self
so I wrote a post to complement those answers. https://emmanuelhayford.com/the-difference-between-self-method-name-and-class-self-in-ruby/
TUNS - Twitter Unfollower Notification Service
Take a look at my last Open Source project. [more inside]
Rails, Turbolinks and animated page transitions
We wrote a post about Turbolinks and animations to help make Rails apps feel a little bit more like a single page app while retaining server-side rendering. [more inside]
Changing the Approach to Debugging in Ruby with TracePoint
Learn more about TracePoint and how it makes code “tell us” what it’s doing. [more inside]