Testing "nested components" #877
-
I have a subject(:render_component) do
form_with(model: model) do |form|
render_inline(TextField::Component.new(form, :name, **options)).to_html.html_safe
end
end Is that the recommended way to render a "nested" component like this? I really need |
Beta Was this translation helpful? Give feedback.
Answered by
MatheusRich
May 6, 2021
Replies: 1 comment 2 replies
-
Sorry I'm not answering the question but bringing another one: how do you access |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just include some modules (you'll have to tweak a bit because I don't remember exactly which ones are necessary)