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?
These lines here are also weird. The lines below would only run
if :table were to be === to "Famitel", which would never happen. (did
you mean params[:tabla] ?