Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/08/2008, 02:00
akenateb
 
Fecha de Ingreso: mayo-2008
Mensajes: 30
Antigüedad: 16 años
Puntos: 0
Respuesta: como cambio un text_field a select_tag?

Me da este error:

Código:
 Showing app/views/contract/_form.rhtml where line #15 raised:

wrong number of arguments (2 for 3)

Extracted source (around line #15):

12: 
13: <p><label for="contract_adults">Adults</label><br/>
14: 
15: <%= select :atributo, (1..15).to_a %>
16: 
17: <p><label for="contract_children">Children</label><br/>
18: <%= text_field 'contract', 'children'  %></p>
S@|u2.