View in Rails doesn't call overridden attribute accessor?

I had a similar problem a few years ago. Given the time involved, excuse me if I'm wrong As far as I recall, form helpers use the before_type_cast accessor methods. Consider renaming your method to amount_before_type_cast There is some more information about the "problem here If, however, you ONLY want the number to be made absolute in views, but still want to use the number in the usual way within the model, this is the wrong approach entirely and you should instead be "sanitizing" your data for use in the view in a different way (i.e.

A helper, in the controller, or with an all new non-databased custom attribute on the model).

I had a similar problem a few years ago. Given the time involved, excuse me if I'm wrong. As far as I recall, form helpers use the *_before_type_cast accessor methods.

Consider renaming your method to amount_before_type_cast. There is some more information about the "problem" here. If, however, you ONLY want the number to be made absolute in views, but still want to use the number in the usual way within the model, this is the wrong approach entirely and you should instead be "sanitizing" your data for use in the view in a different way (i.e.

A helper, in the controller, or with an all new non-databased custom attribute on the model).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions