Skip to content

Commit f1516cd

Browse files
udaykadaboinaBookOfGreg
authored andcommitted
modified installation instructions for rails6 (#1018)
* modified installation instructions for rails6 * no need of adding javascript_pack_tag
1 parent 94f58e2 commit f1516cd

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ gem 'react-rails'
7474
```
7575

7676
##### 3) Now run the installers:
77+
78+
###### Rails 6.x:
79+
```
80+
$ bundle install
81+
$ rails webpacker:install:react
82+
$ rails generate react:install
83+
```
84+
Note: For Rails 6, You don't need to add `javascript_pack_tag` as in Step 4. Since its already added by default.
85+
86+
###### Rails 5.x:
7787
```
7888
$ bundle install
7989
$ rails webpacker:install # OR (on rails version < 5.0) rake webpacker:install
@@ -658,7 +668,7 @@ yarn install
658668
### Undefined Set
659669
```
660670
ExecJS::ProgramError (identifier 'Set' undefined):
661-
671+
662672
(execjs):1
663673
```
664674
If you see any variation of this issue, see [Using TheRubyRacer](#using-therubyracer)

0 commit comments

Comments
 (0)