Hotwire Rails

screenshot of Hotwire Rails

Use Hotwire in your Ruby on Rails app

Overview

Hotwire for Rails was a gem designed to aggregate the dependencies of Turbo and Stimulus for Ruby on Rails applications. However, due to the lack of additional value provided beyond dependency aggregation, the gem has been marked as deprecated. Users are advised to utilize the underlying frameworks directly by accessing Turbo-Rails and Stimulus-Rails repositories.

Features

  • Dependency Aggregation: Aggregated dependencies of Turbo and Stimulus frameworks.
  • Direct Usage: Allowed users to work with Turbo and Stimulus frameworks directly.
  • Deprecated: No longer actively maintained due to lack of additional value.

Turbo-Rails

Add this line to your Gemfile and run bundle install:

gem 'turbo-rails'

Then run the following command to install:

rails turbo:install

Stimulus-Rails

Add this line to your Gemfile and run bundle install:

gem 'stimulus-rails'

Then run the following command to install:

rails stimulus:install

Summary

The Hotwire for Rails gem, which aggregated dependencies of Turbo and Stimulus, has been deprecated due to its lack of value beyond dependency aggregation. Users are now advised to directly utilize the Turbo-Rails and Stimulus-Rails frameworks for their Ruby on Rails applications. The migration process is relatively straightforward, involving the installation of the respective frameworks and shifting focus away from the now deprecated Hotwire for Rails gem.