Skip to content

Commit

Permalink
chore: add package_json gem
Browse files Browse the repository at this point in the history
package_json gem is required to run the command rails g react_on_rails:install
  • Loading branch information
GabrielLidenor authored Jan 2, 2025
1 parent 6e811b6 commit 2f9438d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/migrating-from-react-rails-to-react_on_rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ In this guide, it is assumed that you have upgraded the `react-rails` project to
1. Update Deps

1. Replace `react-rails` in `Gemfile` with the latest version of `react_on_rails` and run `bundle install`.
2. Remove `react_ujs` from `package.json` and run `yarn install`.
3. Commit changes!
2. Add `package_json` in `Gemfile` ( if you don't have it already ) and run `bundle install`
3. Remove `react_ujs` from `package.json` and run `yarn install`.
4. Commit changes!

2. Run `rails g react_on_rails:install` but do not commit the change. `react_on_rails` installs node dependencies and also creates sample react component, Rails view/controller, and update `config/routes.rb`.

Expand Down

0 comments on commit 2f9438d

Please sign in to comment.