In an AJAX auto complete I return strings like: (61) Ashdown Perri Anne 345 Pleasant Ln. The bracketted number is just the id number and is really the number that I want to extract. I am thinking of using a regular expression (whatevere it is - feel free to suggest one) to extract the number but perhaps ror has a better way of doing this or maybe there is even a better way of extracting the id number from the auto complete and putting it into a hidden field that gets passed with the post and is available in params. I am open to suggestions.
Rick





Bookmarks