Skip to content

Commit b22d1f7

Browse files
Use bundle add instead (#114)
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
1 parent 86970ab commit b22d1f7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ There's [native support for import maps in Chrome/Edge 89+](https://caniuse.com/
1111

1212
Importmap for Rails is automatically included in Rails 7+ for new applications, but you can also install it manually in existing applications:
1313

14-
1. Add `importmap-rails` to your Gemfile with `gem 'importmap-rails'`
15-
2. Run `./bin/bundle install`
16-
3. Run `./bin/rails importmap:install`
14+
1. Run `./bin/bundle add importmap-rails`
15+
2. Run `./bin/rails importmap:install`
1716

1817
Note: In order to use JavaScript from Rails frameworks like Action Cable, Action Text, and Active Storage, you must be running Rails 7.0+. This was the first version that shipped with ESM compatible builds of these libraries.
1918

0 commit comments

Comments
 (0)