Hi, I want to know how I can pass the following parameters ... I have faculdade: id, name curso : id, faculdade_id
and the following code
#view
<%= select(:curso, :faculdade_id , Faculdade.find(:all).collect {|c| [c.nome, c.id] }) %> </p>
<th><a href="curso/lista_faculdade?teste="+:faculdade_id> Preço do Curso</a> </th>
controller
You'll need to use some javascript to do that, unless you use a form
(you can always style the button to look like what you want).
Fred