how to pass 2 ids

Mahendra Waykole wrote:

I want to pass 2 ids to same controller.How can i do this?
I have following code
<%= link_to "delete", :action => "delete", :id => %>
I also want to pass to id

The first :id is essentially a convenience, satisfying the most common URI: controller/action/id. You can add any other :id simply by giving it a different name, so:

link_to "delete", :action => "delete", :id =>, :project_id =>

Now fetch the second one into the action with params[:project_id].