OnrailsJohn's profile picture. Teaching you how to make Rails interactive. Award winning baker.

John Beatty

@OnrailsJohn

Teaching you how to make Rails interactive. Award winning baker.

Pinned

There is a lot of talk about modals in Rails, and this tutorial shows you how with some Stimulus sprinkles, you can have very interactive modals. Enjoy! youtu.be/VKJ_1qoPTsE

OnrailsJohn's tweet card. Interactive Modals in Rails with Stimulus.js

youtube.com

YouTube

Interactive Modals in Rails with Stimulus.js


Two Drag and Drop video tutorials which really help show how interactive Rails/HOTWire/Stimulus can be with a simple JavaScript controller. Client side: youtu.be/riBrFASNaHs Server side: youtu.be/NuWWk6iWgwg Original post: onrails.blog/2024/03/08/hot…

OnrailsJohn's tweet image. Two Drag and Drop video tutorials which really help show how interactive Rails/HOTWire/Stimulus can be with a simple JavaScript controller. Client side: youtu.be/riBrFASNaHs Server side: youtu.be/NuWWk6iWgwg Original post: onrails.blog/2024/03/08/hot…

John Beatty reposted

Apparently, server-side frameworks are not allowed to have client state (which most apps have, since forms are client state) nor do DOM manipulations, even if you have abstractions for syncing them. This makes as much sense as me asking most SPAs out there to not use a server.

Dug in deeper, had no idea anything was draggable and I didn't have any mp3s on my computer to upload before. Noticed it uses Sortable.js for drag/drop, this means the UI state is driven by DOM manipulation outside of LiveView. Somebody sent me a Trellix (dumb mini trello) that…



John Beatty reposted

Week 22 - Reusing pages in Turbo Frame flows, and more! hotwireweekly.com/archive/week-2…


John Beatty reposted

Longevity with a company or project is critical because it forces you to live with your own technical decisions, for better or worse. Be cognizant and wary of tech “influencers” that haven’t had to live with the results of their own poor judgement — i.e. those who jump from one…


Adding an animating loading status will help give the feeling of immediacy and “a lot of work is happening in the background” without the frustration that the page is stuck. Here's a video tutorial showing how you can get that interactivity with Turbo! youtu.be/lXxFzPU-_uE


John Beatty reposted

hello friend! want some low hanging fruit to start your day? rate limit the following to 3 per hour: sign ups forgot password attempts team invites any form that sends email on submission. + remove all personalization (name, etc) from them. future self will thank you ᡣ𐭩


John Beatty reposted

Week 19 - Stimulus LSP v1.0, StimulusReflex v3.5, and more! hotwireweekly.com/archive/week-1…


With Headless UI 2.0, we explore how you can convert the react switch component over to Stimulus, and we put the Stimulus Outlet API to work. youtu.be/fvm0F_f5oBA onrails.blog/2024/05/08/hea…


We can use HOTWire to filter a list. Did you know you can animate in/out those items with some Stimulus sprinkles? onrails.blog/2024/04/23/ani… youtu.be/cDZ1gTEnABI

OnrailsJohn's tweet card. Animated Data Filtering in HOTWire

youtube.com

YouTube

Animated Data Filtering in HOTWire


When we have a long list of Todos, sometimes we want to filter them by name. We can easily do this using Turbo’s morphing and a Stimulus controller to update the page from the server. Here's my take on filtering data with HOTWire! onrails.blog/2024/04/09/fil…


John Beatty reposted

📢 The time has come. I am releasing the first ever book on Kamal deployment tool Kamal Handbook. 20 chapters of awesome content + plenty of drawings to visualize the concepts. Foreword by Donal McBreen, Lead Programmer at 37signals. kamalmanual.com/handbook/


HOTWire: Considering Morphing or Turbo Frames With the new morphing features in Turbo 8, you now need to decide on when to use Turbo streams or Turbo frames instead of full page refreshing. Thankfully, all three techniques work together. onrails.blog/2024/03/26/hot…


Drag and drop functions are a fun interaction, but they may not be the best interface in every situation. Buttons are a great affordance, and we can hook them up into our existing drag and drop code without any issue. onrails.blog/2024/03/18/sti…

OnrailsJohn's tweet image. Drag and drop functions are a fun interaction, but they may not be the best interface in every situation. Buttons are a great affordance, and we can hook them up into our existing drag and drop code without any issue. onrails.blog/2024/03/18/sti…

Kredis seems like an interesting tool for epheremal counting: You need to keep a count for a short time, but it doesn't make sense to build out something in the database


Loading...

Something went wrong.


Something went wrong.