You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def convertible_note_params
params.require(:convertible_note).permit(:amount)
.tap do |whitelisted|
whitelisted[:amount_cents] = whitelisted.delete(:amount).to_f * 100 if whitelisted[:amount]
end
end
Hi folks,
Thanks for this great library.
I'm currently running in an error. When using the following form:
Controller:
Model:
I'm getting the following error on creation:
Amount cents is not a number
Am I doing something wrong? What pattern do you recommend to properly fix this?
Thanks!
The text was updated successfully, but these errors were encountered: