Hello, is there any way to define a default value for partial locals?
Example:
I have a template that includes a partial like this:
<%= partial(“mypartial”, :locals => { :test => false }) %>
Setting the “test” variable to “false” on “mypartial”.
But inside “mypartial”, I want that the default value of “test” to be “true”. So, if I include the partial like this:
<%= partial(“mypartial” %>
“test” will be true.
Any help?
Thanks!