J
Jf Rejza
Hi
I have an active record object collection. I want to change the value of
the key called "mail".
@users.collect {|s|s.attributes.x_method { if key == mail then replace @
something else (ex: value.gsub(/@/," (at) ") }}.to_json
How can I achieve my gold?
thanks
jf
I have an active record object collection. I want to change the value of
the key called "mail".
@users.collect {|s|s.attributes.x_method { if key == mail then replace @
something else (ex: value.gsub(/@/," (at) ") }}.to_json
How can I achieve my gold?
thanks
jf