[Rails-core] Default <%= to use the h (html safe) method.

Rick Bradley rick at rickbradley.com
Sun Feb 19 20:47:41 GMT 2006


Kevin,
Thanks for the good work putting this together.

> There are some important limitations to note.  Most importantly, it uses  
> the ActiveRecord after_find callback.  This means that if you are using  
> this callback already, you will need to call super in your callback  
> routine somewhere or it will not run at all.

Quick question:  why not alias the original :after_find so it can be chained?

Rick
-- 
 http://www.rickbradley.com    MUPRN: 422
                       |  know that you're a
   random email haiku  |  target, you should filter your
                       |  power thoroughly.


More information about the Rails-core mailing list