Topic: Parameter forwarding problem. Thanks
I have a problem for a long time.
I have a code like this:
<%=link_to(image_tag("Interface/buttonCurrntPrj.gif",:border=>0), url_for(:controller=>'projects', :action=>'displaycurrentprj', :type_id=>'0', :status_id=>'1'))%>
It is obvious that I am creating link to an button and when the button is clicked, I need to pass two parameters (here, one is type_id and the other one is status_id) to my "projects" controller so I can quary the database, assign value to variable "@projects" and then display the result with "list.rhtml" view of "projects".
Is this code correct? It does not work.
Could you please tell me how to transfer multiple parameters to controllers using "link_to" function like above?