From 329dd34bb7497fc6c91ac64e6868d6fb0663e23b Mon Sep 17 00:00:00 2001 From: Joel Moss Date: Thu, 22 Aug 2024 19:42:04 +0100 Subject: [PATCH] fix(docs): remove options from include_javascripts --- docs/guides/new_rails_app.md | 6 +++--- fixtures/dummy/app/views/layouts/cssm.html.erb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/guides/new_rails_app.md b/docs/guides/new_rails_app.md index 01102c72..8ce0c3a1 100644 --- a/docs/guides/new_rails_app.md +++ b/docs/guides/new_rails_app.md @@ -1,10 +1,10 @@ # Getting Started with a new Rails app -Here we will guide you through the process of setting up a new Rails app with *Proscenium*, and demonstrate how simple and easy it is to use, especially when you [side load](/README.md#side-loading) your client side code. It's also a great starting point if you just use JavaScript sprinkles. +Here we will guide you through the process of setting up a new Rails app with _Proscenium_, and demonstrate how simple and easy it is to use, especially when you [side load](/README.md#side-loading) your client side code. It's also a great starting point if you just use JavaScript sprinkles. ## Prerequisites -Apart from the usual Rails prerequisites, there is absolutely nothing else that you need to install or configure to get started with *Proscenium*. It is a Ruby gem, and it will work with any version of Rails 7 or higher. +Apart from the usual Rails prerequisites, there is absolutely nothing else that you need to install or configure to get started with _Proscenium_. It is a Ruby gem, and it will work with any version of Rails 7 or higher. ## Creating a new Rails app @@ -60,7 +60,7 @@ Your new Rails app already has a `app/views/layouts/application.html.erb` file, <%= yield %> - <%= include_javascripts, type: 'module', defer: true %> + <%= include_javascripts %> ``` diff --git a/fixtures/dummy/app/views/layouts/cssm.html.erb b/fixtures/dummy/app/views/layouts/cssm.html.erb index d28c2cc0..6412e932 100644 --- a/fixtures/dummy/app/views/layouts/cssm.html.erb +++ b/fixtures/dummy/app/views/layouts/cssm.html.erb @@ -6,6 +6,6 @@ <%= yield %> - <%= include_javascripts type: 'module', defer: true if Rails.env.development? %> + <%= include_javascripts if Rails.env.development? %>