未验证 提交 60050ee4 编写于 作者: D David Heinemeier Hansson 提交者: GitHub

Change to current approach

上级 2f530577
......@@ -10,8 +10,8 @@ Assumes a Rails 5.2+ application with Active Storage and Webpacker installed.
```ruby
# Gemfile
gem "activetext", github: "basecamp/activetext", require: "action_text"
gem "mini_magick" # for Active Storage variants
gem "actiontext", github: "basecamp/actiontext", require: "action_text"
gem "image_processing", "~> 1.2" # for Active Storage variants
```
1. Install the npm package:
......@@ -19,7 +19,7 @@ Assumes a Rails 5.2+ application with Active Storage and Webpacker installed.
```js
// package.json
"dependencies": {
"activetext": "basecamp/activetext"
"actiontext": "basecamp/actiontext"
}
```
......@@ -29,9 +29,17 @@ Assumes a Rails 5.2+ application with Active Storage and Webpacker installed.
```js
// app/javascript/packs/application.js
import "activetext"
import "actiontext"
```
1. Migrate the database
```
./bin/rails active_storage:install
./bin/rails action_text:install
./bin/rails db:migrate
```
1. Declare text columns as Action Text attributes:
```ruby
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册