Skip to content

justalever/hotwire_comments

Repository files navigation

Hotwire Comments with Ruby on Rails

Hotwire Comments with Ruby on Rails

This tutorial will guide you through adding Hotwire-enabled comments to a simple Rails blog application. You'll learn how to:

  • Create a basic blog with Rails 7.1
  • Create a comment model and controller.
  • Build a comment form with Hotwire.
  • Display and update comments in real time.

Some prerequisites

  • A Rails 7 application (Hotwire is compatible with Rails 7 and later)
  • Basic knowledge of Rails and JavaScript

Links