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: