This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
development: | |
adapter: postgresql | |
database: <db_name> | |
encoding: utf8 | |
username: <username> | |
password: | |
host: localhost | |
# ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(jQuery) { | |
jQuery.fn.validator = function(options) { | |
var isEmpty = function(obj) { return obj == null || obj.length == 0; }; | |
var opts = jQuery.extend(true, { // Allows for overriding any messages or validator functions | |
wrapperClass: "invalid", messageClass: "message", useMessages: true, | |
onValidation: null, onValidationFailed: null, // Callbacks which recieve an object containing the element and state { el: el, state: state } | |
validateOn: "blur", // The jQuery events that cause validation to occur |