RailsCasts Pro episodes are now free!

Learn more or hide this

Francisco Javier Briceño's Profile

GitHub User: fjavier

Comments by Francisco Javier Briceño

Avatar

i'm getting trouble with the partial.
undefined local variable or method `target' for #<#Class:0x00000003f702d0:0x00000002599460>

the form:

ruby
<%= render "shared/error_messages", :locals => {:target => @freezer} %>
.......

The partial have the same code...

ruby
 <% 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...