Episode

Опубликовано: 13 Март 2026
на канале: Drifting Ruby
599
like

In this episode, we'll explore how we can add a "global" music player that will persist across different pages. Our approach will be unobtrusive and implemented in a maintainable way.

► Full Episode - https://www.driftingruby.com/episodes...

00:00 - Introduction
02:16 - Setting up the application
04:13 - Talking about different options
05:11 - Creating the stimulus controllers
05:40 - Creating the Music Player view
07:45 - Creating the play button view
10:01 - Setting up the Music Player stimulus controller
10:42 - Setting up the Track stimulus controller
12:06 - Demo
12:31 - Organizing the controllers in a different way
13:16 - Demo with alternative approach
13:52 - Final Thoughts

Sponsor message:

Honeybadger is a performance monitoring and error tracking tool that combines the best monitoring features into one simple interface that works with all the frameworks you use and comes with fantastic support from a small team of passionate developers.

With error tracking, performance and uptime monitoring, log management, dashboards, and more, Honeybadger has everything you need to gain real-time insights into the health of your applications.

Keep your apps healthy and your customers happy with Honeybadger!
It’s free to get started, and setup takes less than five minutes.

Start monitoring today → https://www.honeybadger.io/?utm_sourc...

► Visit the Merchandise Store - https://www.railsstore.com/
► Ruby on Rails Templates - https://www.rubidium.io
► Subscribe to Drifting Ruby at https://www.driftingruby.com/subscrip...

#ruby #rubyonrails #programming #code #hotwire #javascript #development