Unusual, I have a render partial with :locals set up but the partial is not recognizing the var being set.
<%= render '/shared/dynamic_attributes', :locals => {:obj => @equipment } %>
Error:
undefined local variable or method `obj' for #<ActionView::Base: 0x26bad44>
Either do
<%= render :partial => '/shared/dynamic_attributes', :locals => {:obj => @equipment } %>
OR
<%= render '/shared/dynamic_attributes', :obj => @equipment %>
Thanks. I am not sure why but when I was doing CTRL+R to reload it was having issues. When I went back to the index and went to my edit page it works just fine. doh...