Displaying 1 result from an estimated 1 matches for "unsafe_attribut".
Did you mean:
unsafe_attribute
2006 Jan 22
0
Escaping and Unescaping text in ERb
...39;'t see? How about an
easy way to implement it?
One possible way I can see doing it would be to over ride the
activerecord method that returns attributes. It could be modified so
that a format like..
object.attribute #=>returns escaped version of ''attribute''
object.unsafe_attribute #=>returns raw version
Interesting... we could use this method to create a functional version
of Apps Hungarian that performs some actions on attributes before
returning them.
_Kevin
--
Posted via http://www.ruby-forum.com/.