--
You received this message because you are subscribed to the Google Groups "Ruby SIG Mexico" group.
To post to this group, send email to ruby-s...@googlegroups.com.
To unsubscribe from this group, send email to ruby-sig-mex...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ruby-sig-mex?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby SIG Mexico" group.
To post to this group, send email to ruby-s...@googlegroups.com.
To unsubscribe from this group, send email to ruby-sig-mex...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ruby-sig-mex?hl=en.
Showing app/views/clientes/new.html.erb where line #42 raised:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.eachExtracted source (around line #42):
39: <p>
40: <%= f.label :co1 %><br />
41: <select nombre="co1">
42: <% @co1.each do |contacto| %>
43: <option value="<%=contacto.nombre%>">
44: <%=contacto.nombre%>
45: </option>--
You received this message because you are subscribed to the Google Groups "Ruby SIG Mexico" group.
To post to this group, send email to ruby-s...@googlegroups.com.
To unsubscribe from this group, send email to ruby-sig-mex...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ruby-sig-mex?hl=en.
pues sigo atoradoespero me puedan echar una mano ya me revise el libro mildito de los descarriladosy se salta esa parteen la que se enlazan dos modelosechenle un ojo a mi codigo plsdef create@cliente_id=params[:contacto]@cliente = Cliente.new(params[:nombre])respond_to do |format|if @cliente.saveflash[:notice] = 'Cliente was successfully created.'format.html { redirect_to(@cliente) }format.xml { render :xml => @cliente, :status => :created, :location => @cliente }elseformat.html { render :action => "new" }format.xml { render :xml => @cliente.errors, :status => :unprocessable_entity }endendendya no me marca erroresnomas no me guarda los datosGRACIAS

ya me hice bolas :S<35F.gif>