Published October 27, 2019
Updated May 15, 2020
Rails Elm
Demonstrates building a Ruby on Rails application with Elm support.
Transcript
# Hello and welcome to the Alchemists Screencasts!
# Today, we'll look at Elm support I added to Rails in 2017. 🎉
# Support was added in Rails 5.x.x via the Webpacker gem.
# For the purposes of this demonstration, we'll use 6.0.0:
rails --version
# To generate a new Ruby on Rails app with Elm support, run:
rails new demo --webpack=elm
# What if you already have a Rails app with Webpack?
# In that case, you can look at the Webpacker install tasks:
cd demo
bundle exec rake -T | ag webpacker:install
# Next you can run the Elm installer:
bundle exec rake webpacker:install:elm
# Now you're running Elm on Rails!
# Enjoy!
# https://www.alchemists.io
# ☿ 🜔 🜍 🜂 🜃 🜁 🜄