Hello, I would like to populate an empty text field with a 5 digit random integer upon an ajax request. I am new to programming and this is all I have so far:
rand()
It will be used for my _form.rhtml partial (a persons 5 digit ID number) so I'm wondering if something like this would belong in a helper, model, or view? Thanks for any help!
helper or model depending on the day I suppose... but I'm not sure I'd do this... just because you use rand() doesn't mean that it's going to be *unique* and I'm guessing you'd like your users 5 digit ID numbers to be unique, yeah?
Just something to think about....