How can I use ruby on rails input field selector?

How can I use ruby on rails input field selector?

This is form:

Jquery

user_user_name:{
validators: {
notEmpty: {
message: ‘The company name is required and
cannot be empty’
}
}
},