Sign in through GitHub

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


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