From 860fb0609d2aa658223c0bd29f0d952a291bd7b7 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Sat, 11 Aug 2012 15:48:30 -0700 Subject: [PATCH] Add note about decorates_before_rendering. Closes #177 --- Readme.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Readme.markdown b/Readme.markdown index 1ed9f7c..752c347 100644 --- a/Readme.markdown +++ b/Readme.markdown @@ -368,6 +368,10 @@ Note how the `validates` line is executed when the `User` class is loaded, trigg Using `I18n` directly in your model definition **is an antipattern**. The preferred solution would be to not override the `message` option in your `validates` macro, but provide the `activerecord.errors.models.attributes.user.email.presence` key in your translation files. +## Extension gems + +For automatic decoration, check out [decorates_before_rendering](https://github.com/ohwillie/decorates_before_rendering). + ## Contributing 1. Fork it.