Closed stephenZ22 closed 3 years ago
# config/initializers/rails_admin.rb config.model 'Post' do field :content do js_location { bindings[:view].asset_pack_path 'actiontext.js' } end end
# app/javascript/packs/actiontext.js require("trix") require("@rails/actiontext")
My model Post(id: integer, title: string, content: text, created_at: datetime, updated_at: datetime)
Don't use existing column
My model Post(id: integer, title: string, content: text, created_at: datetime, updated_at: datetime)