instance method to_editor_content_attachment_partial_path

Ruby on Rails edge

Since edge

Signature

to_editor_content_attachment_partial_path()

Returns the path to the partial that is used for rendering the attachable in the rich text editor. Defaults to to_partial_path.

Override to render a different partial:

class User < ApplicationRecord
  def to_editor_content_attachment_partial_path
    "users/editor_content_attachment"
  end
end
Source
# File actiontext/lib/action_text/attachable.rb, line 128
    def to_editor_content_attachment_partial_path
      to_partial_path
    end

Defined in actiontext/lib/action_text/attachable.rb line 128 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionText::Attachable

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close