Dmitrii Pashutskii 4 months ago
Back-end development
Just learned that you should always pay attention to the passing arguments in render methods.
I have "render_to_string" method inside JSON answer in Rails controller. And I forgot to pass "locals" with my variable there.
Either this or use @instant variables inside partial views. But it' better to always pass.