I'm using money-rails with my Rails 4 app.
I display my monetized attributes without cents. I'd like users to enter whole dollar/pound amounts only (so instead of 100 being $1, I'd like it to be $100).
In my form, I ask users:
<%= par.input :participation_cost_pennies, label: false, placeholder: 'Whole numbers only', :input_html => {:style => 'width: 250px; margin-top: 20px', class: 'response-project'} %>
In my show, I have:
<%= money_without_cents_and_with_symbol @project.scope.participant.participation_cost %>
I'd like to know how to either add .00 to whatever gets entered by the user in the form, or preferably, to make the entered value a dollar amount rather than a cents amount. Does anyone know how to do that?
I have removed cents in my money.rb initialiser:
config.default_format = {
:no_cents_if_whole => nil,