Permalink
Switch branches/tags
Commits on Apr 28, 2009
  1. Removes old submodule for Rails

    holman committed Apr 28, 2009
  2. ValidationHook#message_for accepts optional options hash for I18N str…

    holman committed Apr 28, 2009
    …ing {{interpolation}} purposes. Currently limited to livevalidation.com adapter, specifically length validations.
Commits on Apr 21, 2009
  1. The concat call is wrapped in silence_warnings. This will silence the…

    augustl committed Apr 21, 2009
    … deprecation warning caused by passing block.binding to concat.
    
    It is deprecated in 2.3 (and possibly 2.2), but in order to preserve backwards compatibility, I'll leave it as it is until it breaks stuff.
  2. We should not add custom validations to the messages stack. The messa…

    augustl committed Apr 21, 2009
    …ge is already baked in to the custom validation. Closes #1
Commits on Mar 20, 2009
  1. Added some kind of odd support for i18n interpolation in the custom :…

    augustl committed Mar 20, 2009
    …message messages for the live validations. E.g. :message => "but srsly, {{model}}" will be translated and used as "but srsly, Post" in the live validations.
Commits on Mar 19, 2009
  1. Allowing passing symbols to form_fors with live_validations => true. …

    augustl committed Mar 19, 2009
    …It will look for an instance variable matching the symbol, or raise an error if no instance variable is found, or if the symbol isn't an active record instance.
  2. Testing giving the form builder an invalid object, and raising a more…

    augustl committed Mar 19, 2009
    … sensible error message when it occurs.
  3. The plugin doesn't blow up when the model has validations callback wi…

    augustl committed Mar 19, 2009
    …thout attributes (e.g. `validate` with a block).
Commits on Mar 18, 2009
  1. Changed the test testing attributes with validations but no form fiel…

    augustl committed Mar 18, 2009
    …ds to make more sense. Using an actual attribute in the validation, instead of a random one, etc.
  2. How to run unit tests is obvious now (rake or rake test). Removing th…

    augustl committed Mar 18, 2009
    …e unit test README.
  3. Making sure nothing breaks when not providing :live_validation => tru…

    augustl committed Mar 18, 2009
    …e to a form_for tag.
  4. Making the error messages more sensible. Instead of rescuing all erro…

    augustl committed Mar 18, 2009
    …rs, the error that was raised is passed on. Also improved InlineTemplate so that syntax errors in the viewstring passed to 'render' provides a sensible error message.
  5. Improving the test suite by not using a vendored rails app in test/, …

    augustl committed Mar 18, 2009
    …but mocking it all out instead. This is done because it is convenient to be able to pass the view to render in the test as a string, compared to creating a bunch of views in the vendored rails application.
  6. Now only adding validations for visible form fields.

    augustl committed Mar 18, 2009
    Breaks validatious, but that adapter is vastly incomplete anyways.
  7. Whoops, also passing on the options to the form_for call when :live_v…

    augustl committed Mar 18, 2009
    …alidations hasn't been set.
Commits on Mar 17, 2009
Commits on Mar 11, 2009
  1. Up to snuff with Ruby 1.9.1. ActionView::Base.field_helpers returns s…

    augustl committed Mar 11, 2009
    …ymbols on 1.9 and strings on 1.8, for some reason.
Commits on Mar 9, 2009
  1. Adding some basic options. It's now possible to set what the livevali…

    augustl committed Mar 9, 2009
    …dation.com adapter should display when a field is validated with the :default_valid_message option, so that you can get rid of that silly default "Thankyou!".
  2. Explicitly calling .inspect on the regex so that we get the proper fo…

    augustl committed Mar 9, 2009
    …rmat. We don't want Regex#to_s.
  3. Injecting the form builder code into the built-in formbuilder instead…

    augustl committed Mar 9, 2009
    … of creating a separate one. This is so that custom form builders that subclasses the built-in one are able to use live validations.
  4. You can now use strings and/or symbols to specify which adapter to us…

    augustl committed Mar 9, 2009
    …e, e.g. LiveValidations.use :jquery_validations.
Commits on Feb 28, 2009
  1. README typo.

    augustl committed Feb 28, 2009
  2. Oh, right, we actually use the actual message on the livevalidation.c…

    augustl committed Feb 28, 2009
    …om adapter now, not just the I18n symbol.
  3. Adding a shitload of validators to the livevalidation.com plugin. Onl…

    augustl committed Feb 28, 2009
    …y missing uniqueness now.