From 60050ee41275eda25601beaa453e26841511d492 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 27 Jun 2018 13:38:24 +0200 Subject: Change to current approach --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 2e53935412..72eb6d44cf 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3