I tried to an action via render_component_as_string().
And wanted to suppress layout in this action.
I checked and noticed that “render_component_as_string()” doesn’t accept
“layout” like “render()”.
Then called “render()” in that action like below.
Therefore layouts wasn’t used in this action. this behavior is just
But this time Instance valiable that I set in action will lost in
In action —
@foo = “abc”
In view -----
<%= @foo %>
<%= @foo.nil? %>
I think “abc” should be shown here right?
Someone has any idea?