?
Solved

TextArea Parameter

Posted on 2014-04-07
1
Medium Priority
?
246 Views
Last Modified: 2014-04-08
Given the following code:

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


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.
0
Comment
Question by:lcor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 10

Accepted Solution

by:
Andrew Doades earned 2000 total points
ID: 39983653
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.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question