instance method
to_trix_content_attachment_partial_path
Ruby on Rails 8.1.2
Since v6.0.6Signature
to_trix_content_attachment_partial_path()
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
Source
# File actiontext/lib/action_text/attachable.rb, line 113
def to_trix_content_attachment_partial_path
to_partial_path
end
Defined in actiontext/lib/action_text/attachable.rb line 113
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Attachable