TextArea Parameter

Given the following code:

form_tag ....
    text_area :val, params[:val]

Is there a way to change to

text_area :xx

but keep :val as the parameter that is passed to the backend?  That is, I want to change the id but the parameter name.
Who is Participating?
Andrew DoadesConnect With a Mentor IT TechnicianCommented:
I think it's a matter of setting both the 'id' and 'name' parameters, but I can't remember which one is passed back to the controller. I think I've done this before on a form that had multiple fields using the same controller variables, but I can't find any examples now.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.