Opal Rails

screenshot of Opal Rails
rails

Bringing Ruby to Rails · Rails bindings for Opal

Overview

The Opal Rails is a gem that provides Rails bindings for Opal, allowing users to integrate Opal with Ruby on Rails projects. It enables developers to use Opal via Webpack and offers support for Rails 5 and 7. The gem facilitates the use of Opal in Rails applications and includes features for configuration, template handling, and various Rails versions.

Features

  • Rails Bindings: Integrates Opal with Ruby on Rails projects.
  • Webpack Support: Allows integration of Opal via Webpack.
  • Configuration Options: Provides a range of configuration options for the Opal compiler.
  • Template Handling: Supports rendering assigns when using the template handler in actions.
  • Rails 5 and 7 Support: Offers examples and instructions for Rails 5 and 7 versions.
  • RSpec Support: Includes support for RSpec with opal-rspec-rails (unreleased).
  • Minitest Support: Upcoming support for Minitest with opal-minitest-rails.
  • Shared Templates: Enables the sharing of templates within the Sprockets/Opal load path.
rails
Ruby on Rails

Ruby on Rails, often referred to as Rails, is an open-source web application framework written in Ruby. Known for its convention over configuration and don't repeat yourself (DRY) principles, Rails simplifies and accelerates the development of database-backed web applications.