Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>How does the form itself look. I have no experience with Ruby on rails - and if it builds the form in a new exciting way - but it looks as if there's only two form elements: authenticity_token and customer - where customer is an array of items. This is the data you posted, but I urldecoded it and put in some linebreaks:</p> <pre><code>authenticity_token=oRKIDOlPRqfnRehedcRRD7WXt6/Q0zLeQqwIahJZJfE= &amp;customer[uxName]= &amp;customer[uxEmail]= &amp;customer[uxResidentialPhone]= &amp;customer[uxMobilePhone]= &amp;customer[uxDateOfBirth]= &amp;customer[uxAddress]= &amp;customer[uxResidentialStatus]= </code></pre> <p>What you could do is to serialize the form to an array and clean it up before sending it using jQuery ajax request. I did something similar once when I had to serialize .net runat-server form elements:</p> <pre><code>var serializedData = $(form).serializeArray(); for( i=0; i &lt; serializedData.length; i++) { // For each item in the array I get the input-field name after the last $ character var name = serializedData[i].name; var value = serializedData[i].value; if( name.indexOf('$') != -1) name = name.substr( name.lastIndexOf('$')+1 ); serializedData[i].name = name; } var ajaxPostData = $.param(serializedData); </code></pre> <p>So instad of blabla$ABCPlaceHolder$tbxEmail I got tbxEmail in the array. You could do the same to get uxName, uxEmail etc instead of the customer array.</p> <p>Note then again, however, due to my inexperience with ruby that this may not be the best solution - maybe there's a setting you can change to build the HTML form differently?</p> <p><strong>Updated:</strong></p> <p>I'm not sure how ruby works, but after a googling I found you should be able to receive your values using params:customer as an array.</p> <p>params:customer should contain an array of the values</p> <pre><code>{:uxName =&gt; "", :uxEmail =&gt; "" } </code></pre> <p>I hope that tells you something on how to receive the data. Maybe (warning - wild guess!) like this?</p> <pre><code>params[:customer][:uxName] </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload