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 => @met.id %> I also want to pass project.id 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 => @met.id, :project_id => project.id

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