Solved

TextArea Parameter

Posted on 2014-04-07
1
226 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
1 Comment
 
LVL 10

Accepted Solution

by:
Andrew Doades earned 500 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Border and image sizing 5 28
Why a span is lower 2 26
How to pass JavaScript generated HTML text form values to PHP? 5 38
Accessing specific element - DOM PHP HTML 8 34
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

809 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