Skip to content

Commit

Permalink
save rate (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
neb417 authored Jul 11, 2024
1 parent 9fb66ff commit 930c193
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/federal_tax_brackets_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def edit
# POST /federal_tax_brackets or /federal_tax_brackets.json
def create
@federal_tax_bracket = FederalTaxBracket.new(federal_tax_bracket_params)
@federal_tax_bracket.update_rate(rate: params[:rate])

@federal_tax_bracket.update_rate(rate: federal_tax_bracket_params[:rate].to_i)

respond_to do |format|
if @federal_tax_bracket.save
Expand Down

0 comments on commit 930c193

Please sign in to comment.