passing parameters on rails

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&ccedil;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

Yes, look into observe_field in the API, and you could easily write a small RJS template which replaced the link with one with the appropriately inserted value.

Julian.

Learn Ruby on Rails! CHECK OUT THE FREE VIDS (LIMITED TIME) VIDEO #3 OUT APRIL 6

http://sensei.zenunit.com/