Project

General

Profile

How to render parent partial in the partial

Added by luigifab ! over 5 years ago

Hello

I have a question/problem: I need to add some HTML in attachments/_form.html.erb for my plugin.
But I need also to keep all existing data.

- plugins/me/app/views/attachments/_form.html.erb
- app/views/attachments/_form.html.erb

How I can do this?

Can I tell to <%= render partial: "_form.html.erb" %> to use parent partial?
I try <%= render partial: "attachments/form" %> but it crash!

Thanks for your help.