This article was originally published on Rails Designer


Ruby is Red, JavaScript is yellow,

Two languages every Rails dev should know.

JavaScript for Rails Developers in orange glow,

The book that makes your full-stack skills grow.


I am super excited (and having a bad case of impostor syndrome 😬) to finally announce that JavaScript for Rails Developers is out now!

Get your copy right here: javascriptforrails.com.

If you have pre-ordered, you should have received an email with the download (if not, let me know).

Image description

It is a short and focused book at ~31,000 words (~7 hours of reading!). So a great way to spend your time this long-weekend. 🤓 It will help you become more comfortable writing JavaScript (and understand that of others).

“Finally, JavaScript explained while keeping my Ruby soul intact.”

The book is built around adding a code editor, using Stimulus, in a Rails app. With every chapter new, interesting JavaScript syntax is explored. So in chapter 4.5, Extending with custom features, I go over:

  • using the barrel pattern;
  • namespace importing;
  • array index finding;
  • Object.keys;
  • circular wrapping;
  • and more.

There is also a huge emphasize of writing code that is as great-looking as your Ruby code. Just look at some code from the book:

create(editor, enabled) {
if (!enabled) return

const firstEditor = this.#createClone({ from: editor })
const secondEditor = this.#createClone({ from: editor })

this.#pair(firstEditor, { with: secondEditor })

editor.destroy()

return secondEditor
}

Doesn't that just read beautifully—just like Ruby? “Create clone from editor” and then “pair first editor with second editor”. Chef's kiss!

Preview some more

What is the writing like? Read some of the chapters here:

Pricing

JavaScript for Rails Developers comes in three tiers:

  • Solo, get the book + the code editor built in the book — just $39
  • Professional, everything in Solo + Markdown + Preview variant, Code Playground, JavaScript Widget for live chat and access to Rails Designers (launch Q3, 2025) — only $69
  • Team, everything in the solo tier with a license for 5 developers — $169 (that is 15% off!).

It would mean a lot if you could share JavaScript for Rails Developers at your favorite hangout:

  • The office's water cooler;
  • Your local Ruby/Rails meetup;
  • r/ruby;
  • r/rails;
  • r/rubyonrails (why is there r/rails ánd r/rubyonrails?);
  • Your favorite rubyonrails Discord groups;
  • Your favorite rubyonrails Slack channels;
  • Your company's Basecamp/Linear/Slack/Teams;
  • Twitter/X, LinkedIn, Facebook, Instagram and TikTok.

Just one share would really mean a lot to me. ❤️ Thanks so much for your support!

Want to level up your skills and make JavaScript your second-favorite language? Get your copy right here: javascriptforrails.com.