instance method to_attachable_partial_path

Ruby on Rails 8.1.2

Since v7.0.10

Available in: v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

to_attachable_partial_path()

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

Override to render a different partial:

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

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

Defined in ActionText::Attachable

Type at least 2 characters to search.

↑↓ navigate · open · esc close