name attribute to store the brand name. However it’s missing a description. That’s because we’re going to use Action Text to handle the rich text content.
Step 1: Add Action Text to the Model
app/models/spree/brand.rb
spree_brands table. That’s because Action Text stores all the rich text content in a separate table called action_text_rich_texts.
You can access the description content in code like this:
Step 2: Add a WYSIWYG editor to the Admin Dashboard
In the Admin dashboard we want to use a WYSIWYG editor to add formatted text to the brand description. To do this, edit theapp/views/spree/admin/brands/_form.html.erb file and add the following code:
app/views/spree/admin/brands/_form.html.erb
Step 3: Update permitted parameters in controller
To permit thedescription attribute to be saved, we need to update the permitted parameters in the controller. file and add the following code:
app/controllers/spree/admin/brands_controller.rb

