method

to_trix_content_attachment_partial_path

Importance_1
v7.1.3.4 - Show latest stable - 0 notes - Class: Attachable
to_trix_content_attachment_partial_path() public

Returns the path to the partial that is used for rendering the attachable in Trix. Defaults to to_partial_path.

Override to render a different partial:

class User < ApplicationRecord
  def to_trix_content_attachment_partial_path
    "users/trix_content_attachment"
  end
end
Show source
Register or log in to add new notes.