I'm passing down some variables to a partial. model variable prints out just fine. But I cannot seem to add any other variables. I've tried it a few different ways.
<%= render partial: 'layouts/modals/header', locals: {title: t('layouts.issue'), b: "b", modal: "issue_modal"} %>
Also tried it as
<%= render 'layouts/modals/header', title: t('layouts.issue'), b: "b" , modal: "issue_modal" %>
in header partial
<div class="row mx-0">
<div class="modal-header w-100 row mx-0 justify-content-between p-t">
<button id="create-back" class="btn btn-lg float-left text-rocket-grey-light text-uppercase" data-modal="<%= modal %>" type="button" name="button"><%= t('buttons.cancel') %></button>
<button id="create-submit" class="btn btn-lg float-right btn-danger bg-rocket-red text-rocket-black" data-modal="<%= modal %>" type="button" name="button"><%= t('layouts.create') %></button>
<%= b %>
<%= modal %>
</div>
<div class="modal-title w-100 pl-3">
<div class="text-danger m-t m-l text-uppercase font-weight-bold">
<%= t('layouts.create') %> <%= title %>
</div>
</div>
</div>
no matter what I keep getting undefined local variable or method `b' for #<#<Class:0x00007fa3a43661c8>:0x00007fa3a53a2320>
It doesn't make any sense to me that model and title print out fine but "b" is undefined. Ultimately I am trying to pass in a form builder object so I can put form.submit in my _header partial