RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: fjavier
i'm getting trouble with the partial. undefined local variable or method `target' for #<#Class:0x00000003f702d0:0x00000002599460>
the form:
<%= render "shared/error_messages", :locals => {:target => @freezer} %> .......
The partial have the same code...
<% if target.errors.any? %> <div class="alert fade in alert-error"> .......
but if this code is directly in the form it's working... but i want to work with the partial...
i'm getting trouble with the partial.
undefined local variable or method `target' for #<#Class:0x00000003f702d0:0x00000002599460>
the form:
The partial have the same code...
but if this code is directly in the form it's working...
but i want to work with the partial...