Displaying 2 results from an estimated 2 matches for "person_last_nam".
Did you mean:
person_last_name
2008 Apr 01
1
using label tags in scaffold views...how to get the method name?
hi,
i want to use the <label> tag in the scaffold views.
for a text field where the id is id="person_last_name" how can i get
the person_last_name string programmaticaly to use it as a label
parameter <label for="person_last_name">
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal...
2006 Aug 14
2
Plugins: Validation Reflection and Client-Side Validation
...eally need such a thing, look at the code for
<tt>Form.Validator.Validators#exactly</tt> and
<tt>Form.Validator.Validators#different</tt>.
== Notifying Users of Validation Results
Form.Validator.install(''person_form'', {
onElementStatusChange: {
person_last_name: function(isValid) {
if (!isValid) alert(this.value + " is not a valid last name.");
},
},
onFormStatusChange: function(isValid) {
if (!isValid) alert("Your form is not valid!");
}
});
If you provide your own +onElementStatusChange+ function for repo...