Displaying 1 result from an estimated 1 matches for "entidad_id".
2007 Jan 10
0
many_to_many relationship problem
...(params[:persona])
flash[:notice] = ''Persona was successfully updated.''
redirect_to :action => ''show'', :id => @persona
else
render :action => ''edit''
end
end
On the view:
<p><label for="persona_entidad_id">Añadir pertenencia a
entidad</label><br/>
<%= select(:entidades_personas, :entidad_id, @entidades ) %></p>
I get th following error:
Entidad expected, got NilClass
The closer i''ve got to the solution is with this change to the
controller:
d...