how pass the params :id to next action?

Hi, everybody:    I made a view - works as creating a new comment for a specific article, a example URL is "http://localhost:3000/comments/new/2": here, comments is the controller, new is the action, 2 is the id of the specific article, which needs to be passed to next action "create", so that this comment will be attached and displayed under 2nd article. However, I didnt figure out how I can pass the id to next action named "create" in this controller, seems like only the "comments" is the only parameter when I click the "create" button... what can I do?

the new view as follow:

Shortly I wanna deliver not only the "comments" but also the "id" as params to next action.

myst_tt wrote:

Shortly I wanna deliver not only the "comments" but also the "id" as params to next action.

Pass the id to the URL that the form posts to.

<% form_for @comment, :url => {:id => @comment} do |f| %>

good idea, RESTful... now I got to figure out how to do the nested URL in route.rb, but anyway, thanks for your comments!

Br, Myst

Really big hand!