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.
Working with Turbolinks
A lot of developers just remove Turbolinks when they run into issues with Javascript plugins, but it doesn’t have to be that way. [more inside]
Postgres Distinct On
Recently I fixed a tricky N+1 query and thought I should write it up. The need arises when you have a parent child relationship and you need the first child matching some criteria. Simple enough. The tricky part is when you want to bulk load a single child for several parents to avoid an N+1 query. https://johnnunemaker.com/postgres-distinct-on/
Under the hood of zypper_upgraderepo gem
A brief excursus of my gemified application zypper_upgraderepo https://freeaptitude.altervista.org/articles/under-the-hood-of-zypper-upgraderepo-gem.html
The Ruby Blend: Parentheses and typosquatting [Podcast]
In this episode, Nate has to check his emails, Andrew uses parentheses, and Ron drowns in the DigitalOcean. We also find out why Nate was right (again). Also, what happened with typosquatting? Nate dives into the Manager vs. Maker’s schedule. And why does Andrew have “needless paranoia?” Listen to this week’s episode to find out about all these and more.
Starting macOS development with RubyMotion
An article on getting started with macOS development with RubyMotion. It shows you how to initialize your first project and translate between Objective-C and RubyMotion. vtlearn.de
Install and use MongoDB with Rails 6
Want to learn how to install and use MongoDB with Rails 6 to build interactive apps? Here’s a complete guide on how to utilize rails MongoDB for app creation with Rails 6. Have a look: https://dev.to/botreetechnologies/how-to-install-and-use-mongodb-with-rails-6-meg
Run Javascript from Ruby with NodeRunner
This gem provides a simple way to execute Javascript in a Ruby context via Node. (Loosely based on the Node Runtime module from ExecJS.) It supports Node require statements and dynamic function calls, and is nearly as fast as executing Node scripts directly on the command line.
Password Protected Zip Using Ruby on Rails
Do you want to create a password-protected zip file using Ruby on Rails? Look at the steps outlined in this article and started zipping your files in Ruby from today. Have a look: [more inside]
Building a Ruby CLI with Thor
We have written a Ruby CLI using Thor for a client project and we share everything we’ve learnt in the process in this blog post! [more inside]
Why Rubyists Should Consider Learning Go
These days fewer and fewer web developers get to specialize in a single language like Ruby. We use different tools for different jobs. In this article, Ayooluwa Isaiah argues that Go is the perfect complement to Ruby. The developer who knows both is in a great position to handle almost any back-end challenge. https://www.honeybadger.io/blog/rubyist-learn-go/
Ruby Toolbox gets an API for fetching project data
The Ruby Toolbox now has an API for fetching project data
Build a real-time Twitter clone in 10 mins with Rails and StimulusReflex
Learn how to build interactive real-time applications with Ruby on Rails, CableReady, and StimulusReflex. We’ll create a Twitter style timeline that broadcasts updates to all users in real-time …and we’ll build the entire application in less than 10 minutes. Read the post / watch the video here: https://dev.to/codefund/build-a-real-time-twitter-clone-10-mins-with-rails-and-stimulusreflex-5h5c
Drag & Drop Sortable lists with Stimulus.js
Drag and drop items in a list are a pretty common feature you’ll see in apps. Check out the screencast on how to use Stimulus and SortableJS to add Drag & Drop sortable lists to your Rails app
Practical use of Ruby PStore
The story of imlementing github data source for static site on nanoc. How the octokit, faraday, concurrent-ruby and pstore gems fit together to deliver remote articles efficiently. Standing on the shoulders of giants. [more inside]
Rails System Tests In Docker
Use Rails system tests in a Docker development environment with headless Chrome or with the Docker host’s Chrome. MORE INSIDE
I created a step-by-step tutorial demonstrating how to integrate React with Rails
I really wanted to learn React and API development, so I went head first into building a simple application, and documented my experience. I think what sets this apart from other Rails and React tutorials is that I cover…
Rename stream in Rails Event Store with zero downtime
Code walkthrough - concurrent writes, race conditions and other fun stuff when you need to rename stream with zero downtime. https://blog.arkency.com/rename-stream-in-rails-event-store-with-zero-downtime/
The 8 Most Common Rails Mistakes Developers should avoid
These 8 common Rails development mistakes can put your project to a halt. Here’s how you can avoid them and increase the efficiency of your Ruby on Rails project. Have a look: [here]
Introducing jQuery in Rails 6 Using Webpacker
First release candidate of Rails 6 is out with exciting features and refinements in existing features. Today we will look into one of those features, which is webpacker. It is now by default in Rails 6 as a Javascript Compiler. Have a look: [more inside]