I have a model like this...
Receipt
-------
amount:int # => An amount of money stored as cents.
But in the view I have these fields...
amount_dollars
amount_cents
So mass assignment won't work there.
What is the standard way to deal with this situation? Where do you put the code that converts the incoming values into an amount of cents?