Problem with parameters

First at all sorry if my english is not the best.

In the view I have this code:

<%= select_tag “tabla”, options_for_select([“Famitel”, “Polycom Kirk”,
“LG Nortel”, “Dimax Videovigilancia”]) %>
<%= text_field :buscar, params[:codigo_aleatorio]%>
<%= button_to “Buscar” , :action => :elijovista %>

In elijovista´s controller I need to know the item that was selected in
tabla and the text.

my code is:
def elijovista
debugger
return params[:payment]

case :tabla
    when "Famitel"
     @ticket=Ticket.find( :first, :select =>"reference",

:conditions=>[‘codigo_aleatorio=?’,params[:codigo_aleatorio]])

    # renders app/views/zonaclientes/showFamitel
    render :template => 'zonaclientes/showFamitel'
  return

.
.
.
.
(The same for the rest of the items)
.
.
But render never works, always show the elijovista view.

Whats wrong? How can obtain the option selected in tabla?

Thanks for all

thanks

Whats wrong? How can obtain the option selected in tabla?

You might get better answers in a Rails-specific forum :

http://groups.google.com/group/rubyonrails-talk
http://railsforum.com/

Good luck,

Chris

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs