[Ror-es] duda con un select..

Gonzalo Rodríguez-Baltanás Díaz
Wed May 4 22:43:07 GMT 2011


Esta lista está obsoleta y hemos movido al grupo de Google 

Replantea tu pregunta ahí.

Y di qué error te muestra, porque a mi me funciona así:

<%= form_tag('/post/create') do %>
                
        
<% end %>        


class PostController < ApplicationController
  def create
    aux
  end    
  
  def aux
    puts params[:saludo]
  end

end  



El 05/05/2011, a las 00:23, Jesus Granados escribió:

> Hola a todos!
> 
> Tengo un problema al intentar tomar una variable de un select, el texto en
> el hola.rhtml es el siguiente:
> 
>        
> 
>        
> 
> y en el controlador Pagina.rb tengo la funcion
> 
> def hola
> end
> 
> en la que intento recibir el valor del select, ¿Cómo le hago para que
> recibir el valor del select en una variable en la función??
>  = params[:saludo] #???????? así no me funciona
> 
> -- 
> "El Valor de las personas esta dado por las acciones que se realizan en
> beneficio de los demás"
> 
> MATI Jesus F. Granados
> JESCO SOLUTIONS S.A. de C.V.
> 
> Tel. / fax (33) 3122-1313
> 
> 
> 
> NOTA: La información de este correo es de propiedad exclusiva y
> confidencial. Este mensaje es sólo para el destinatario señalado, si usted
> no lo es, destrúyalo de inmediato. Ninguna información aquí contenida debe
> ser entendida como dada o avalada por Jesco Solutions, sus subsidiarias o
> sus
> empleados, salvo cuando ello expresamente se indique. Es responsabilidad de
> quien recibe este correo de asegurarse que esté libre de virus, por lo
> tanto ni Jesco Solutions, sus subsidiarias ni sus empleados aceptan
> responsabilidad
> alguna.
> 
> NOTE:  The information in this email is proprietary and confidential. This
> message is for the designated recipient only, if you are not the intended
> recipient, you should destroy it immediately. Any information in this
> message shall not be understood as given or endorsed by Jesco Solutions, its
> subsidiaries or their employees, unless expressly so stated. It is the
> responsibility of the recipient to ensure that this email is virus free,
> therefore neither Jesco Solutions, its subsidiaries nor their employees
> accept any
> responsibility.
> 
> _______________________________________________
> Proudly free of Ruby Forum crossposting since 01/07/2009
> Ror-es mailing list
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.simplelogica.net/pipermail/ror-es/attachments/20110505/dd87e8bb/attachment.htm