I would say though that you should use form_for rather than form_tag
if possible. So if the form is displaying data for an object then use
form_for.
If you are a beginner then, if you have not already done so, I suggest
you work right through some tutorials such as railstutorial.org (which
is free to use online), that will give you a good basic knowledge of
rails. Make sure you use a tutorial for rails 3 and install the
correct version of Rails.
I would say though that you should use form_for rather than form_tag
if possible. So if the form is displaying data for an object then use
form_for.
There was no especially good reason to try for this, except I happened to have a form that used form_tag and with no instance variable available for use with form_for.
Anyway, let me close this issue, noting that my conclusion is that there is no way to get parameter naming with form_tag like from form_for.