Skip to content

Commit

Permalink
save rate
Browse files Browse the repository at this point in the history
  • Loading branch information
neb417 committed Mar 14, 2024
1 parent e00b010 commit 66e1df3
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 66e1df3

Please sign in to comment.