Hi there, so i have a small model, that appends itself to a content after it’s created. It broadcasts itself, and another partial to append it to the <body>
.
after_create_commit do
broadcast_append_to(
list,
target: :contacts,
partial: "contactables/contactable",
locals: { contactable:, viewed: nil }
)
broadcast_append_to(
list,
target: :contacts,
partial: "list_contacts/create",
locals: { list_contact: self }
)
end
Both work successfully, however, i have a route data-
attribute inside the contactable view. When it’s appended, the url looks like so
Any idea why the route helpers resolves to .example.org
?. I have not configured any domain(it’s localhost) on development.
Thanks for your insights