First, remove turbolinks
. Turbolinks will be supported starting at one of the next releases, but currently they're not.
- Remove the
turbolinks
gem from your Gemfile.
- Remove
require turbolinks
from app/assets/javascripts/application.js
.
- Remove
'data-turbolinks-track'
from app/views/layouts/application.html.erb
.
Next, add the following to the Gemfile:
gem 'scrivito', '~> 1.7'
group :development, :test do
gem 'thin'
end
Execute bundle install
.
Now, obtain your Scrivito API credentials from your Scrivito CMS settings.
SCRIVITO_TENANT
is the ID of your CMS. Click the title or the gear icon of the CMS; its ID should then be displayed on the next page and is also part of the URL.
Your SCRIVITO_API_KEY
can be found on the “Danger Zone” tab (you just need one of them).
Add these values to the .env
file, like so:
SCRIVITO_API_KEY=api_key
SCRIVITO_TENANT=tenant_id
To complete the integration, follow the integration instructions, but please skip step 9, “Optionally integrate a front-end framework” since we will be using Solidus' markup.