Hey Nick,

Nick a écrit :
> I created a form with 2 text_field_with_auto_complete fields and a
> submit button. I am able to get the auto complete feature to work.
> However, I am unable to read the values of the two text fields when I
> click the submit button. The classic way with @varname =
> params[:field_value] does not seem to work.

m'kkayyy, basic questions first:

- Are your fields indeed *in* the form you're submitting, DOM-wise?
- Did you make sure they were provided with a non-empty name= attribute?
- At submission time, are they deemed successful (e.g. enabled, in this
  case)?

If all this fails, two more paths:

- Hook a handler to the form's submit event and console.log or alert its
serialize() method result.  Check for your fields.
- Post the details of your form opening and helper calls, in template
order, in this thread...  Maybe we'll see something you forgot to mention.

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to