📢 Sponsored: Check out Susan's Sudoku - A free daily sudoku puzzle.

Intermediate

Javascript for Rails Developers

Make JavaScript your second-favorite language.

Updated Apr 21, 2025
By Eelco
Price: $39+

Description

For decades Ruby on Rails devs have shrugged at JavaScript, cursed at it or vowed to never use it again. But over the years, JavaScript has improved greatly. And if you want to write modern (SaaS) web apps today, there is almost no way around it.

Sure, the Hotwire tools help you tremendously to write as little JavaScript as possible, but if you want something more bespoke, you need to write JavaScript (powered by Stimulus) by hand.

This short and focused book (~31,000 words / ~7 hours of reading) will help you, Ruby on Rails developer, become more comfortable writing JavaScript that is as great-looking as your Ruby code and understand the JavaScript written by others. It won't cover React or Vue (or any of the other thousands available JS frameworks), but about writing and understanding JavaScript used in Stimulus controllers.

The book goes from zero to a functional code editor in your Rails app throughout various, easy to digest chapters. This will cover everything from working with a dependency (CodeMirror) in Stimulus, to extracting logic in smaller classes, refactoring to be more readable and using more advanced and modern syntax and integrating WebSockets (using Action Cable).

If you have been a Rails developer who has cursed at JavaScript, this book might be for you. If you've been a Rails developer avoiding JavaScript at all costs, this book is what you need. For Rails developers who've wished JavaScript would just disappear, this book might change your mind.

More from Eelco

Rails Designer UI

A new UI components library, built with ViewComponent, Tailwind CSS and Hotwire.

View Details →

More "Books" Projects

Rails on AWS

Master AWS in a short amount of time without spending months getting certified.

High Performance PostgreSQL for Rails

Reliable, Scalable, Maintainable Database Applications

The Rails and Hotwire Codex

Develop multi-platform apps using Ruby on Rails and Hotwire.

More "Premium" Projects

Rails Designer UI

A new UI components library, built with ViewComponent, Tailwind CSS and Hotwire.

Ruby Static Pro

The Ruby static site generator template for blogs, personal sites, sales/marketing sites & more. Fast. Flexible. Fantastic.

RailsNotes Starter Kit+

Skip wasting time building boilerplate for authentication, billing & passwords resets. You could be shipping today instead, with the Ruby on Rails template that nails the bullsh*t.

Stay updated with the latest Rails projects

Join our newsletter to get updates on new Rails projects and resources.

    We won't send you spam. Unsubscribe at any time.