Masked Input Fields?


Fellow Rails Enthusiasts?

Does Ruby on Rails have a form helper function to create a masked text
field? For example, a mask for entering a phone number might look like:

( ) -

Also, does RoR have a function to set the focus to the first form field
on a
page? I usually use the following JavaScript function:

function FieldFocus() {
if (document.forms.length > 0) {

along with:

But, if Rails comes with similar functionality built in I’d rather do it
Rails way.

Bruceville, TX