Here's how we'd add Users and handle edit permissions for links. See how it compares to your implementation and consider the pros/cons of each approach.
Anyone can add, edit, and delete any Link in our URL Shortener database. Your challenge is to add users, associate links with them and only allow editing of your own links.
Copy to clipboard is a required feature for a URL shortener. We'll implement this with two JavaScript libraries (clipboardjs and tippy.js) and a Stimulus controller.
We can retrieve the title, description, and OpenGraph metadata for URLs. Since HTTP requests can be slow, we'll implement this metadata lookup in a background job and broadcast to the frontend with Turbo.
Decoding our Base62 encoded short codes is the next challenge
13 min
About GoRails Screencasts
From the publisher's feed
GoRails is a series of screencasts and guides for all aspects of Ruby on Rails. Learn how to setup your machine, build a Rails application, and deploy it to a server.