instance method
to_missing_attachable_partial_path
Ruby on Rails 7.2.3
Since v7.1.6Signature
to_missing_attachable_partial_path()
Returns the path to the partial that is used for rendering missing attachables. Defaults to “action_text/attachables/missing_attachable”.
Override to render a different partial:
class User < ApplicationRecord def self.to_missing_attachable_partial_path "users/missing_attachable" end end
Source
# File actiontext/lib/action_text/attachable.rb, line 72
def to_missing_attachable_partial_path
ActionText::Attachables::MissingAttachable::DEFAULT_PARTIAL_PATH
end
Defined in actiontext/lib/action_text/attachable.rb line 72
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Attachable