Matthieu Rousseau


610 Experience
6 Lessons Completed
0 Questions Solved


Hi Adam and Franklin,

I had a similar issue using a Profile model and rendering a _profile_mention.html.erb partial for the mentions.

Adding this to_trix_content_attachment_partial_path method pointing to my _profile_mention.html.erb partial did the trick when editing my rich text.
But when displaying my rich text (@article.content), it still renders the _profile.html.erb partial.
Any idea how I could fix that please?

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.