Skip to content

Commit

Permalink
fix(docs): remove options from include_javascripts
Browse files Browse the repository at this point in the history
  • Loading branch information
joelmoss committed Oct 2, 2024
1 parent 9990ed5 commit 329dd34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/guides/new_rails_app.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -60,7 +60,7 @@ Your new Rails app already has a `app/views/layouts/application.html.erb` file,
<body>
<%= yield %>
<%= include_javascripts, type: 'module', defer: true %>
<%= include_javascripts %>
</body>
</html>
```
Expand Down
2 changes: 1 addition & 1 deletion fixtures/dummy/app/views/layouts/cssm.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body class="<%= css_module :body %>">
<%= yield %>
<%= include_javascripts type: 'module', defer: true if Rails.env.development? %>
<%= include_javascripts if Rails.env.development? %>
</body>
</html>

0 comments on commit 329dd34

Please sign in to comment.