Skip to content

Commit

Permalink
final adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed Dec 22, 2021
1 parent 8e4f0b9 commit 07e0600
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docs/guides/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

-----

*Updated for Ruby 2.7.1, Rails 6.0.3.1, React on Rails v12.4.0, and Webpacker v6*
*Updated for Ruby 2.7.1, Rails 6.0.3.1, React on Rails v12.5.0, and Webpacker v6*

This tutorial guides you through setting up a new or existing Rails app with **React on Rails**, demonstrating Rails + React + Redux + Server Rendering.

Expand Down Expand Up @@ -62,15 +62,15 @@ of both the gem and npm package. In other words, don't use the `^` or `~` in the
_Use the latest version for react_on_rails._

```
gem 'react_on_rails', '12.4.0' # prefer exact gem version to match npm version
gem 'react_on_rails', '12.5.0' # prefer exact gem version to match npm version
```

Note: The latest released React On Rails version is considered stable. Please use the latest
version to ensure you get all the security patches and the best support.

```bash
bundle add webpacker --git=https://github.com/rails/webpacker.git
bundle add react_on_rails --version=12.4.0 --strict
bundle add react_on_rails --version=12.5.0 --strict
```

## Run the webpacker generator
Expand All @@ -95,7 +95,7 @@ Install React on Rails: `rails generate react_on_rails:install`. You need to fir
Note, using `redux` is no longer recommended as the basic installer uses React Hooks.
If you want the redux install: `rails generate react_on_rails:install --redux`

The generator will add `mini_racer`'s latest version. In case of problems with it please visit [mini_racer github repository](https://github.com/rubyjs/mini_racer/issues/218) for possible solutions.
The generator will add `mini_racer`'s latest version. If you're using linux & encounter issues installing `libv8`, here's [a common solution](https://github.com/rubyjs/mini_racer/issues/218).

```
rails generate react_on_rails:install
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Procfile for development using HMR
# You can run these commands in separate shells
rails: bundle exec rails s -p 3000
wp-client: bin/webpack-dev-server
wp-server: SERVER_BUNDLE_ONLY=yes bin/webpack --watch
wp-client: HMR=true bin/webpack-dev-server
wp-server: HMR=true SERVER_BUNDLE_ONLY=yes bin/webpack --watch

0 comments on commit 07e0600

Please sign in to comment.