Displaying 1 result from an estimated 1 matches for "lookup_by_titl".
Did you mean:
lookup_by_title
2006 Jul 06
3
Accessing form field contents
...value, leading me to
believe that the hash hasn''t been stored yet, because nobody pressed the
"Create" button.
So the next thought is to actually pass in the value when you press the
link, along the lines of:
<%= link_to("Lookup by title", :action => ''lookup_by_title'', :val =>
fieldValue) %>
But how do I get the contents of the field? In JavaScript I''d do
document.formName.fieldName.value, but I can''t do that here because 1.
what is the name of this form? and 2. If I simply say document. blah
blah blah, Ruby barfs because...