I'm trying to generate a random number which acts as the ID for Request
table in the Release Planning Project,
I'm able to generate the random number successfully but I'm unable to set
this random number as the ID value
for the table using ajax on RoR .
Post some code.
You don't seem to have an AJAX problem. If the ID appears in a model or controller, then you write the ID into the file using common RHTML stuff like <%= id %>
If the ID then comes back, it should go as a <input type='hidden' ... /> field. AJAX might route its parent <form> back; is that what you need?